??? 03/09/12 21:55 Read: times |
#186543 - Response Responding to: ???'s previous message |
Hi Robert,
I am using Acc and SCON1 to check RI bit because my MCU has 2 serial ports and has 2 TI's (TI1/TI0) and RI's (RI1/RI0) also. I am using UART1 so RI1 and TI1 are suppose to operate with this. But when I put RI1/TI1 in my code I get errors, because only RI and TI (without the 1 or 0 at end) are defined in the header file for SCON0 @ 98H (SCON 0.0 and SCON 0.1) which is provided by Silabs. SCON1 is @ F1H and RI and TI are not defined for this SFR. So i need to trigger the bits in SCON1 in order to set/clear TI/RI. Hope that explains it ok. No, I am not allowing for 0.7 seconds of a boot up time, I have no delay involved in my writing/reading of bytes. Would that cause it not to transmit due to sending the bytes too early? It says in the appendix "Boot-up time means the total time consumed by FIM5360 after system power up and /Reset are supplied" So would that mean that it takes .7 seconds after its plugged in or 0.7 seconds after I send my first command to it? As for my code, it gets to TEST_RI after it is done writing to serial and loops there because the RI flag isnt set so there is no data in the SBUF1. I have sent bytes from Realterm to check my read serial and it seems to function correctly, I wrote 7E, it entered SBUF1 and then it was stored in RAM. Dave |
Topic | Author | Date |
Serial coms, bytes not matching in serial capture | 01/01/70 00:00 | |
Couple of things at first glance... | 01/01/70 00:00 | |
Response | 01/01/70 00:00 | |
OK | 01/01/70 00:00 | |
what does the instruction spell out | 01/01/70 00:00 | |
Instruction says | 01/01/70 00:00 | |
Got it | 01/01/70 00:00 | |
have a good read | 01/01/70 00:00 | |
Nitgen FIM5360 module | 01/01/70 00:00 | |
Not familiar with the module... | 01/01/70 00:00 | |
Boot up time... | 01/01/70 00:00 | |
Response | 01/01/70 00:00 | |
Isn't boot time always time from reset or time from power-on | 01/01/70 00:00 | |
Ok | 01/01/70 00:00 | |
SCON1... | 01/01/70 00:00 | |
Jumping from RET to Jump Start | 01/01/70 00:00 | |
Please Ignore last post, issue resolved | 01/01/70 00:00 |