Thanks Alleycat, I have learnt quite a bit today about interrupts from your reply and further reading about PICs. The main thing I have learn is "don't use interrupts". In fact I have got the set-up to work well with just an "If....Then" statement. A lesson we'll learnt. Thanks again. stevecoulson.
I think I shouted Hurray a bit too soon. I have got the interrupt to do what it should (get the 14M2 to go into Wait mode) but the interrupt seems to be making the program unstable when the 14M2 comes out of Wait mode and resumes sending signals to the H bridge ( which switches on, off and...
Aaha. So simple! It downloaded easily after the correction. Many thanks. What is also rather splendid is that the interrupt worked!!! The first time I have ever had any success with them. Hurray!!
stevecoulson
Hi, I am trying to get interrupts to work (again) but have hit a problem. My very simple code looks like this :-
Interrupt:
Low B. 1
If pin C. 1 = 1 then Interrupt
setint %00000100, %00000100
Return
The Picaxe editor does not like the line "If pin C = 1 then...
Hi, I have just bought an axe131y oled screen and managed to get it to work with a coin acceptor from ebay. It has now started to play up. When I first got it to work it displayed PICAXE.COM when the power was applied. Now it shows 4 characters that look a bit like 6A#q. When it is activated via...
Hi, I have been struggling with this for some days now so, with tears of frustration rolling down my cheeks I turn to the Picaxe forum.
I am trying to control a device that displays model figures one at a time in sequence. It is a motor switching program. A large table rotates and pause 8...
Hi, I have written a simple motor control program that uses a magnetic sensor. I have written the program and run it on the simulator and all seems fine. When I try it in the Picaxe 14M though nothing happens. I have tried 3 different 14Ms, all the same. I have made a copy of the circuit in...