Hi!
I'm trying to use this procedure from Mikrobasic Conversions library, but this isn't working. Was it disabled in the 7.01 version?
All the anothers procedures are working correctly.
Search found 8 matches
- 12 Sep 2019 18:30
- Forum: mikroBasic PRO for AVR General
- Topic: ByteToStrWithZeros() identifier not declared
- Replies: 1
- Views: 1407
- 01 Oct 2018 12:43
- Forum: mikroBasic PRO for AVR General
- Topic: UART comunication truncated data
- Replies: 7
- Views: 3011
Re: UART comunication truncated data
Hi,
I have not progressed yet. Any help?
I have not progressed yet. Any help?
- 26 Sep 2018 14:20
- Forum: mikroBasic PRO for AVR General
- Topic: UART comunication truncated data
- Replies: 7
- Views: 3011
Re: UART comunication truncated data
Sure! It's a ESP8266 module ESP-01 version. I'm using 9600 baud rate. I've tried another rate, but without sucess too.
It's cofigured to 8-bit data, 1 stop bit, no parity bit, and no flow control
It's cofigured to 8-bit data, 1 stop bit, no parity bit, and no flow control
- 26 Sep 2018 12:03
- Forum: mikroBasic PRO for AVR General
- Topic: UART comunication truncated data
- Replies: 7
- Views: 3011
Re: UART comunication truncated data
Hi, I've just identified that the strange chars are <CR> (0X0D) and <LF> (0x0A), but I'm still not receiving the entire status data I needed. In this example code I should receive "ERROR", but I'm receiving: "<CR>,<LF>,<LF>,<CR>,<LF>,0x45, 0x52, 0x52,<LF>, <LF>" or sometimes: "<CR>,<LF>,<LF>,<CR>,<L...
- 25 Sep 2018 15:57
- Forum: mikroBasic PRO for AVR General
- Topic: UART comunication truncated data
- Replies: 7
- Views: 3011
Re: UART comunication truncated data
Hi program UART_TEST ' LCD module connections dim LCD_RS as sbit at PORTC6_bit dim LCD_EN as sbit at PORTC5_bit dim LCD_D4 as sbit at PORTC4_bit dim LCD_D5 as sbit at PORTD2_bit dim LCD_D6 as sbit at PORTD3_bit dim LCD_D7 as sbit at PORTD4_bit dim LCD_RS_Direction as sbit at DDC6_bit dim LCD_EN_Dire...
- 24 Sep 2018 20:00
- Forum: mikroBasic PRO for AVR General
- Topic: UART comunication truncated data
- Replies: 7
- Views: 3011
UART comunication truncated data
Hi, I'm trying to communicate with a module via AT commands using Uart library. Sending data is ok, but when I'm receiving data from this I'm getting some truncaded data among the expected data. For example, when I'm supposed to receive "ERROR", I'm getting 9 or 10 chars, but only 3 ou 4 are part of...
- 23 Aug 2018 19:36
- Forum: mikroBasic PRO for AVR General
- Topic: Cannot set TWI clock under 30khz
- Replies: 1
- Views: 4205
Re: Cannot set TWI clock under 30khz
Solved.
Instead of using TWI_Init() function I've used the following equation from Atmega32 datasheet
SCLclock = CPU_FREQ/16+ 2(TWBR)*4^TWPS
So, setting registers value as TWBR=0x72 and TWSR=0xFB I've got a 1095Hz SCL clock.
Instead of using TWI_Init() function I've used the following equation from Atmega32 datasheet
SCLclock = CPU_FREQ/16+ 2(TWBR)*4^TWPS
So, setting registers value as TWBR=0x72 and TWSR=0xFB I've got a 1095Hz SCL clock.
- 14 Aug 2018 13:54
- Forum: mikroBasic PRO for AVR General
- Topic: Cannot set TWI clock under 30khz
- Replies: 1
- Views: 4205
Cannot set TWI clock under 30khz
Hi, I need to establish TWI communication under 5khz, but when I set values under 30khz in TWI_Init() routine the real clock I can read with logic analyzer is around 100kHz. Setting values over 30khz to 400khz the clock readed is the same I set. I'm using Atmega32 with 16Mhz xtal. I need some help. ...