Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Initialization Code for On-Chip ADC of the Microcontroller 87C196NT in C

Status
Not open for further replies.

cris bond

Newbie level 1
Newbie level 1
Joined
Jul 15, 2011
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,289
Dear sir,
I am working on the microcontroller 87C196NT.I have looking forward to help of expert who can solve my problem on that particular Microcontroller.

As per above said subject,i am looking forward to your help on the 87C196NT micro controller.I am trying to write Source code to initialize the On-Chip ADC of the 87C196NT micro controller.

My main routine for initialization of the On-chip ADC is:

main()
{
ad_time=0xEE; // Sample time=3.6 us and Conv. time=18 us
ad_test=0x00; // Perform Normal Conversion on ANGND
while(1)
{
ad_command=0x1c; // Start Conversion on channel 4 now
delay(); // waiting for 8T time
Reading_adc value();
}

}

Please see my source code and try to help me out.

Awaiting for your response,

Krishna Mishra
India
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top