11/11/2013 4:56 PM | |
Posts: 40 Rating:
|
Good morning, I'm not able totrigger a hardware interrupt. Here I am attaching a simple little program created to verify the start of OB200. In the program the hardware interrupt should be started from the edge set in channel 0. The rising edge is simulated thanks to the simulator inputs and it's setted in the cpu's properties. What could be wrong? Besides, whatis the meaning ofthe number-32621in the position RET_VAL of the instruction ATTACH ? I have not found anything in the manual.. Thanks Attachmentx.pdf (306 Downloads) |
11/11/2013 7:30 PM | |
Posts: 40 Rating:
|
POINT 1 AND 3: I did what you have shown me and ret_val is equal to 8093, the meaning of which is "not present event". ok but I have not solved my problem. View page 1 of the attachment. POINT 3: I rewrote the same program beforeerasingthe instructionATTACHbut OB200still does not work. What could be wrong? Could you take asimple example of code to enable a hardware interrupt? I'm banging my head for days, but it seems to me just does not work .. View page 2-3 of the attachment. thanks Attachment69.pdf (271 Downloads) |
11/12/2013 12:10 AM | |
Posts: 40 Rating:
|
But setting M0.0=1 (throughinstruction S) and activating the input I0.0 using the Simulator, it should not always be activated Q0.5? I also implemented what you have shown me, but the OB200still does not work, in fact the variable TAGNAME is always zero. See the attachment. I also implemented what you've shown mein theOB1 and therethe instruction ADDworks very good, then it is clear that the OB200 is NEVER triggered, How can i trigger the OB200? Attachment6969.pdf (290 Downloads) |
11/12/2013 12:58 AM | |
Posts: 40 Rating:
|
Sure, I just redone now. I attach screenshots of how i load the hardware in cpu. And yet again, the ADD instruction in OB1 works. Attachment666.pdf (291 Downloads) |
Follow us on