EEPROM + RS232
Posted: Fri May 09, 2008 4:52 pm
Hi everybody,
I am using flowcode (PRO version) to construct this program that mainly receives a sequence of 256 bytes from the RS232 RX pin. The baud rate is 19.2k and the PIC i am using is PIC16F88. This data is supposed to be written in the PIC's internal EEPROM. In other words as soon as I receive a byte, I immediately write it in the EEPROM, increment the address counter, and wait for the UART to supply me with the next data byte.
Two LEDs should light up when the sequence ends. In simultion this occurs but in real-life NO!!
I have tried a slower baud rate 1200 and it worked.
My question is: Is there a time constraint to write on the EEPROM???? If so, does it also apply to reading?
BTW i am clocking the PIC using a 19.0668 MHz crystal and the TARGET i chose in FLOWCODE is PIC16F88 (xtal).
Thanks in advance
I am using flowcode (PRO version) to construct this program that mainly receives a sequence of 256 bytes from the RS232 RX pin. The baud rate is 19.2k and the PIC i am using is PIC16F88. This data is supposed to be written in the PIC's internal EEPROM. In other words as soon as I receive a byte, I immediately write it in the EEPROM, increment the address counter, and wait for the UART to supply me with the next data byte.
Two LEDs should light up when the sequence ends. In simultion this occurs but in real-life NO!!
I have tried a slower baud rate 1200 and it worked.
My question is: Is there a time constraint to write on the EEPROM???? If so, does it also apply to reading?
BTW i am clocking the PIC using a 19.0668 MHz crystal and the TARGET i chose in FLOWCODE is PIC16F88 (xtal).
Thanks in advance