Tagged Questions
0
votes
0answers
123 views
stm32f2xx external clock source for timer
I trying to use a timer with an external clock source on a stm32f207ZE microcontroller.
But it isn't working. Here is my code:
...
2
votes
2answers
208 views
Can I generate 56kHz signal with MCU running at 1Mhz
I am new to embedded systems designing. I have to generate a 56kHz signal with a MCU running at 1Mhz. I want high accuracy. If I just use a timer, it gives me 55.55kHz.
Is there any way I can divide ...
0
votes
1answer
57 views
PIC24H delta time calculation
Hello I'm making a project for my intro embedded software class and I need to make use of a timer in a program. If I'm not mistaken this code should be looping the while for at least 500 ...
2
votes
1answer
81 views
PIC18 - problems getting inline assembler routine to work
(EDIT: Added C18 disassembly code)
I need to optimize a function written in C for a PIC18f4585. I am using C18 to compile.
The function I am trying to re-write in assembly is:
...
2
votes
3answers
446 views
1
vote
1answer
183 views
Timers and internal clock generator on Freescale MCU
I am using MC9S08AW60A with DEMO9S08AW60E Board (Freescale). I have studied about the timers given with the MCU. I wish to know how exactly to Implement timers by code. The Freescale suite also comes ...
3
votes
2answers
324 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
3answers
200 views
Ideal Hardware Timer Setup Routine
Imagine you were trying to write a C routine for an 8bit microcontroller that converted a desired timespan (be it seconds, milliseconds, hertz, etc). to the corresponding hardware timer preload value ...
1
vote
1answer
153 views
Fast PWM and Atmega1280 problem
Hello I have some problems to understand how to bind a Timer to a Pin and because of that my code isn't running...
...
2
votes
1answer
2k views
C18 Timer0 timing calculation using MCC18
I am programming a PIC18F4520 and I've set it to use a 32Mhz internal clock.
I need a counter to tick every second so I'm using TMR0 for this purpose.
To use ...
1
vote
1answer
442 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 ...