Welcome![Sign In][Sign Up]
Location:
Downloads SourceCode Embeded-SCM Develop ARM-PowerPC-ColdFire-MIPS
Title: iccavr_source Download
 Description: M8 TLC2543 PB5-DATADIN PB0-DATAOUT PB1-# CS PB2-CLOCK// This program does not use tlc2543 the EOC (end of conversion flag) signal, chip select has been in a select, you can also add their own chip-select signal unsigned int tlc2543 (unsigned char senddata) {unsigned int recdata = 0 unsigned int i = 0 senddata = 0B11010000 // control word recdata = 0 // receive the results of the data conversion// PORTB & = 0B11111101 // Chip Enable ( optional) NOP () NOP () for (i = 0 i < 12 i++) {if (senddata & 0x80) PORTB | = 0B00100000 else PORTB & = 0B11011111 // ready to send control words senddata < < = 1 if (PINB & 0x01) recdata | = 0x0001 else recdata & = 0xfffe recdata < < = 1 // Receive the last conversion result
 Downloaders recently: [More information of uploader lingfeng1983]
 To Search:
File list (Check if you may need any files):
iccavr_source\ICCAVR源程序.txt
.............\修正版本.txt
iccavr_source
    

CodeBus www.codebus.net