3
votes
1answer
68 views

PIC interrupt based soft UART timing trouble

I've tried to implement a software UART on a PIC18F452 using TIMER0 interrupts and I can't get the timing working. I'm using MPLAB ASM for compilation and the PICkit2 for programming. ...
3
votes
2answers
85 views

Use PWM and ISR at same time on AVR

Is it possible to use AVR PWM outputs and ISR interrupts at the same time? I've got a project I'm trying to do on an ATMega328P and I need 3 PWM outputs but ALSO need to be able to use ISR interrupts ...
0
votes
0answers
463 views

Understanding Timers, Counters and Prescaler Registers on the STM32

So I'm trying to set up a very simple periodic interrupt on my STM32VL-Discovery board using the libopencm3 libraries on linux. I've looked at the documentation and I just want to verify with ...
1
vote
1answer
39 views

DSPIC30f timer1 not trigger everytime on POR

I am using timer1 on DSPIC30f4011 to generate an interrupt every one millisecond. However, the timer1 ISR is not executed every time on POR (2 out of 10 times). If I turn on the power for the chip and ...
3
votes
2answers
320 views

Can't set to Fast PWM OCRA mode

Trying to have Fast PWM mode when TOP == ORCA. Works fine with OCA toggle (measuring correct frequency), but doesn't work in ...
1
vote
1answer
441 views

Timer1 not running on PIC16F628

I have this little project that requires exact clock so I'm using 32768 Hz quartz on RB6 & RB7 on my PIC16F628. Both pins are grounded using 33 pF capacitors. My code that configures the timer1 ...
2
votes
1answer
163 views

What does granularity mean?

I was wondering what granularity means? It is used in the context of: A background task that performs a simple operation. The granularity of the background task, specifying the number of ...
1
vote
1answer
324 views

I having troubling understand what other interrupt firing besides TMR2 on PIC18f4550

I having troubling understand what other interrupt firing high_isr besides TMR2 on PIC18f4550. Way I detect it I set pin MY_DBG_PIN toggling everytime high_isr is activated, and from what I try to ...
4
votes
3answers
556 views

What would be the best way to design a real time clock for the MSP430?

Basically that. The way I am doing it now is with the TimerA set to 1 second interrupts. But I think that it's very annoying. Are there any other ways to do it? I want to basically set timers on that ...
1
vote
1answer
290 views

Writing to timer counter while timer is running

I'm using PIC16F1947 for a project. The project requires real time tracking so a stable 32768 Hz crystal is connected with the Timer1 oscillator. The Timer1 oscillator circuit and the crystal will ...
2
votes
1answer
692 views

Increasing the delay using 'option' register in Pic16f877a

I have learned that the maximum 'delay' possible in pic16f877a running with a source of 11.0592MHz (11059200 / 4 actually) is 23 ms.. without using software delays (delay_ms( )).. the calculation was ...