??? 11/16/06 12:47 Read: times |
#128078 - REN_0 Responding to: ???'s previous message |
SCON0 = 0x13; //Mode 0, baud 24/12, enable receive,TI=1;RI=1; Disable REN_0 and clear TI for transmission. Then put data to SBUF0 TI is asserted when the transmission finishes. Enable REN_0 and clear RI for reception. Then TXD0 starts to clock the SCK of the SPI RI is asserted when the reception finishes. When the UART mode 0 is used as an alternative of SPI, - clock polarity and phase is limited - The bit order is reversed "AN702: Interfacing Microchip MCP3201 A/D Converter to 8051-Based Microcontroller" from Microchip http://ww1.microchip.com/downloads...00702a.pdf Tsuneo |