Please help me, how can I use interrupt and PWM on port B. For example I use PIC 16f88 and on pin RB3 I want to use PWM and on pin RB4 interrupts for an IR senzor. How can I do this. I use separatly PWM and Interrupts and works, but both doesn't.Pls hlep me.
Thanks
Ttelmah Guest
Posted: Mon Nov 27, 2006 10:30 am
You can't.
You need to use a seperate interrupt (RB0). The interrupt on the 'high' pins of port RB, is a 'port changed' interrupt. It triggers, whenever the state of a pin changes from the currently latched value. Unfortunately using a pin as a peripheral output, doesn't override this (hardware stupidity in the chip).
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum