#include "sfr62.h" /********************************************************/ /* Prototypen Deklaration *******************************/ /********************************************************/ void port_init(void); /************************************************************************/ /**** MAIN **************************************************************/ /************************************************************************/ void far main() { int a,b,c,d,e,f,g,h; port_init(); adcon0 = 00001000; // repeat mode adcon1 = 00110000; // 8 Bit mode adcon2 = 00000001; // port group p2 select & sample and hold adst = 1; // start conversion; while(1) { a = (ad0); b = (ad1); c = (ad2); d = (ad3); e = (ad4); f = (ad5); g = (ad6); h = (ad7); } } void port_init(void) { pd10 = 0x00; // LCD data }