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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

1,619件の閲覧回数
Li9999
Contributor I

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

0 件の賞賛
返信
1 返信

1,563件の閲覧回数
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 件の賞賛
返信