PDA

View Full Version : Help...Help... ADC convert ...



M.Henriques
02-08-2007, 07:24 PM
Hello,
·I am to use the ADC of microchip MCP3201, in an application with the BS2, would like to know as to read 12bits of the AD ones
Therefore with this application I do not obtain to get the 12 bits.
··
A2Ddata· ····· CON 0
A2Dclock ····· CON 1
A2Dcs··· ······· CON 2
·result···· ········ VAR Word
·
Main:
·
LOW A2Dcs
·
PULSOUT A2Dclock, 1
SHIFTIN A2Ddata, A2Dclock, MSBPOST, [result\13]
HIGH A2Dcs
·
Display:
·
DEBUG HOME
DEBUG "ADC..... ", DEC result, " ", CR
··
Best regards
·
Manuel Henriques