atosynth.blogspot.com
A to SynthTorsdag 13. august 2015. Pic 18f gotchas: interrupts on portb change. I have constructed the 68b01 clone to use interrupts to detect when the main controller has read the output data. To do this I detect when pin 7 on portb changes. Changes on pin 4-7 on portb can generate an interrupt, PBIF whenever the input changes. GIE = 1; / global interrupts enable. PBIE = 1; / portb change interrupt enable. IOCB7 = 1; / only pin 7 should trigger interrupt. IOCB6 = 0;. IOCB5 = 0;. IOCB4 = 0;. MOVF PORTB, 1. I have ...
http://atosynth.blogspot.com/