??? 06/20/04 00:23 Read: times |
#72803 - RE: ADuC832 serial comms problem Responding to: ???'s previous message |
I just went through a similar thing with the very same board.
I ended up copying the ASM code for the serial setup from one of AD's example code snippets. I think my compiler (Basic BXC51) gives the wrong values or what I really mean is there is confusion about the actual clock speed of the critter. And using a different timer too? Can't claim I know WHY but... This works on a 8031: (9800 8n1) MOV PSW,#0 MOV SCON,#05AH MOV TMOD,#21H MOV TCON,#84H MOV T2CON,#0H this works on the aduc832: ;CONFIGURE UART FOR 9600 BAUD AT DEFUALT CORE FREQ OF 2.097152MHZ') MOV T3CON,#82H') MOV T3FD,#02DH') MOV SCON,#52H') ; enable the intenal On-Chip RAM') ORL CFG832, #01h') Have fun... |
Topic | Author | Date |
ADuC832 serial comms problem | 01/01/70 00:00 | |
RE: ADuC832 serial comms problem | 01/01/70 00:00 | |
RE: ADuC832 serial comms problem | 01/01/70 00:00 | |
RE: ADuC832 serial comms problem | 01/01/70 00:00 | |
RE: ADuC832 serial comms problem | 01/01/70 00:00 | |
Keil Example | 01/01/70 00:00 | |
More Keil Examples | 01/01/70 00:00 | |
RE: ADuC832 serial comms problem | 01/01/70 00:00 | |
RE: Keil putchar, getchar. | 01/01/70 00:00 | |
RE: ADuC832 serial comms problem![]() | 01/01/70 00:00 |