cancel
Showing results for 
Search instead for 
Did you mean: 

ST7 Lite

brian4
Associate II
Posted on August 12, 2004 at 14:01

ST7 Lite

14 REPLIES 14
anshul
Associate II
Posted on August 11, 2004 at 09:52

That seems very surprising. Can you attach a sample of your code. Also did you check by including just simple NOP instruction in your ISR, is it working.

And by what do mean by doesn't seem to continue. Do you mean that it is juts stuck in that ISR.
brian4
Associate II
Posted on August 11, 2004 at 11:20

I have emailed my code to you

Many Thanks
anshul
Associate II
Posted on August 12, 2004 at 13:18

In your setup.asm

PADDR and PAOR registers are FFh which means you have configured all your ports as Push-pull output. If you want to use PA0 as an Interrupt then you should configure these registers as PADDR=FEh and PAOR=FFh.
anshul
Associate II
Posted on August 12, 2004 at 13:18

I also noticed a problem in your main.asm you have referred to PADDR this is the data direction register. I am sure you want to turn the Port pin high in that case you should access the data register, PADR

[ This message was edited by: Ansh on 12-08-2004 17:33 ]
brian4
Associate II
Posted on August 12, 2004 at 14:01

I have now sorted my problem as outlined in an email I have sent you.

Many thanks for your help