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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,739 次查看
Li9999
Contributor I

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

0 项奖励
回复
1 回复

1,683 次查看
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 项奖励
回复