Interrupt help.

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

Interrupt help.

2,447件の閲覧回数
Dimy
Contributor I
Hello, I'm new to this forum and to this MCU.
I would like to known how to make a program to the MCU MC9S08GT60 (I am using the SARD board)
using interrupt on one of the buttons (PTA5 for example) to activate a function.
I'm really lost, any help would do. If someone could lead me to a manual using c for this MCU it would really help. Thanks in advanced.
ラベル(1)
0 件の賞賛
返信
6 返答(返信)

849件の閲覧回数
JimDon
Senior Contributor III
I can 100% reccomend this book:

"HCS08 Unleashed: Designer's Guide To the HCS08 Microcontrollers
"

Has many examples, one of which is a button.


0 件の賞賛
返信

849件の閲覧回数
Dimy
Contributor I
Thank you for the tip, I was planning to buy one of this, so thanks for the input.
Another thing that I wanted to ask is how do I simulate a button press in the codeWarrior Debugger?
I started to use it today but I can't find where or how to do this, I'm simulating step by step.
Thanks.

0 件の賞賛
返信

849件の閲覧回数
fabio
Contributor IV
Thanks Jim!

Dimy: you can give a try on the simulation components (available within the components item on the main menu of the simulator tool).

Best regards,
0 件の賞賛
返信

849件の閲覧回数
UK_CF_FAE
NXP Employee
NXP Employee
Hey Dimi,
 
We (well, the helpful guys in the TIC at Guadalajara) invented the Peripehral Module Quick Reference guide just for this type of question. You could search for document HCS08QRUG on the www.freescale.com . There is a code download, too, and the KBI example generates an interrupt when a key is pressed. How helpful is that???!!!
 
 
Mark
0 件の賞賛
返信

849件の閲覧回数
Dimy
Contributor I
Well, it was very helpful. Thanks.
If I have any more problem I ask you guys.
Thank you again.

Dimy.
0 件の賞賛
返信

849件の閲覧回数
UK_CF_FAE
NXP Employee
NXP Employee
Dimi,
 
Glad to be of help.
 
Mark
0 件の賞賛
返信