Can you provide a code for 9S08DZ60 to detect AD inputs?

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

Can you provide a code for 9S08DZ60 to detect AD inputs?

212 Views
Li9999
Contributor I

当 AD 输入大于某个值时,LED 会亮起

0 Kudos
Reply
1 Reply

156 Views
Pablo_Ramos
NXP Employee
NXP Employee

Hi @Li9999,
In order to give you better feedback regarding this matter I will be answering you in English

For the ADC initialization you can take a look at the datasheet, in there you will find the initialization sequence and some Pseudo-Code Example of how to do so.

See section 10.5.1 ADC Module Initialization Example of MC9S08DZ48, MC9S08DZ32, MC9S08DZ16 - Data Sheet

For the initialization of the GPIO you can refer to Chapter 6 Parallel Input/Output Control of MC9S08DZ48, MC9S08DZ32, MC9S08DZ16 - Data Sheet

Hope it helps you!

0 Kudos
Reply