How to read analog DC voltage of battery of 3.3 Volts using A/D converter of MC9S08SL8 MCU and to view the same in CodeWarrior "Real Time Simulator". I do not have demo or evaluation board and working with CodeWarrior v6.3 Debugger/ Simulator.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to read analog DC voltage of battery of 3.3 Volts using A/D converter of MC9S08SL8 MCU and to view the same in CodeWarrior "Real Time Simulator". I do not have demo or evaluation board and working with CodeWarrior v6.3 Debugger/ Simulator.

922 Views
srinivasubatchu
Contributor I

I am working on to read analog DC voltage of a battery of 3.3 volts as input voltage using A/D converter of Freescale MC9S08MCU. 

I do not have target hardware and trying with CodeWarrior ver 6.3 as Debugger/ Simulator.  Can you please let me know, how to read the analog voltage inputs. 

Please note that this is to simulate the analog inputs but not digital outs. 

0 Kudos
Reply
1 Reply

787 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

Hello Srinivasu Batchu ,

The ADC simulator included in CW6.3 full chip simulator is very simple.

It can only simulate ADDI and ADCLR register of ADC module. We can reach it with referring below screenshot.

pastedImage_1.png


Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply