Hello good people,
I follow this forum for a long time, it is excellent! I found a lot of good stuff on it.
Now I have a problem with the code from Mr. Darrel Taylor.
Thus, I use pic18f2550 and connect DS1307z and 4 PWM channels to PORTA
SDA Var PORTA.1
SCL Var PORTA.0
ASM
SPWM_LIST macro
SPWM_PIN PORTA, 2, _CH1
SPWM_PIN PORTA, 3, _CH2
SPWM_PIN PORTA, 4, _CH3
SPWM_PIN PORTA, 5, _CH4
endm
SPWM_INIT SPWM_LIST
INT_LIST macro
INT_Handler TMR1_INT, SPWMhandler, ASM, yes
endm
INT_CREATE
ENDASM
@ INT_ENABLE TMR1_INT
Now i got problem with this configuration. When i enable SPWM_LIST then RTC stop working, in fact he working but value he give, its not good. When i disable software pwm, RTC is working good.
I hope that you understande what is my problem and that one of you has a solution for this problem.
Sory for my english![]()
Thanks a lot, Damir
Bookmarks