Author |
Message |
Topic: Reset watchdog not |
jpts
Replies: 10
Views: 22047
|
Forum: General CCS C Discussion Posted: Fri Jul 21, 2017 6:02 am Subject: Reset watchdog not |
Worked..tks.
included the fuses WDT_SW and WDTWIN_SW .
and in main setup_wdt(WDT_4S | WDT_WINDOW_100_PERCENT | WDT_ON);
Regards in my fuses I tooked out #FUSES WDT
Regards, Jpts |
Topic: Reset watchdog not |
jpts
Replies: 10
Views: 22047
|
Forum: General CCS C Discussion Posted: Thu Jul 20, 2017 9:13 am Subject: Reset watchdog not |
Same result...not working...
Testing, I noticed that function restart_wdt() reset the PIC...if change position in program like below its print "start" followed "running".
#FUS ... |
Topic: Reset watchdog not |
jpts
Replies: 10
Views: 22047
|
Forum: General CCS C Discussion Posted: Thu Jul 20, 2017 7:38 am Subject: Reset watchdog not |
Included, #FUSES WDT4096 but still same....printing only "Start"
My FUSES setup:
#FUSES NOBROWNOUT
#FUSES NOLVP
#FUSES WDT
#FUSES WDT4096
#FUSES NOPPS1WAY
#FUSES STVREN
# ... |
Topic: Reset watchdog not |
jpts
Replies: 10
Views: 22047
|
Forum: General CCS C Discussion Posted: Thu Jul 20, 2017 7:00 am Subject: Reset watchdog not |
Included " #FUSES WDTWIN_100%, but still same. reset the pic....
if i take out the function restart_wdt(); the program works as expected...its print " Start" after four print runnin ... |
Topic: Reset watchdog not |
jpts
Replies: 10
Views: 22047
|
Forum: General CCS C Discussion Posted: Wed Jul 19, 2017 10:44 am Subject: Reset watchdog not |
Why function restart_wdt() its not working...the program below print "START" instead print "running". CCS:5.071
#include <16F18857.h>
#device ADC=10
#use delay(cry ... |
Topic: Setting up watch dog for PIC16F18857 |
jpts
Replies: 0
Views: 6420
|
Forum: General CCS C Discussion Posted: Wed Jul 12, 2017 12:02 pm Subject: Setting up watch dog for PIC16F18857 |
Doubt how to config watchdog for pic16f18857. In PIC configuration has other parameter to setup, WDT_WINDOW_PERCENT that I am not sure what setup.
Idea is to set watchdog to reset each 4SEC . CCS V5. ... |
Topic: Timer4 setup |
jpts
Replies: 8
Views: 14667
|
Forum: General CCS C Discussion Posted: Wed Jun 28, 2017 8:24 am Subject: Timer4 setup |
Some examples in web use "clear_interrupt(INT_TIMER4);" every#INT_TIMER4 and in start main(). Its really necessary ....my program did not have any affect with or without "clear_interr ... |
Topic: Timer4 setup |
jpts
Replies: 8
Views: 14667
|
Forum: General CCS C Discussion Posted: Wed Jun 28, 2017 7:58 am Subject: Timer4 setup |
WORKED!
Adding in program:
#byte T4CLKCON=getenv("SFR:T4CLK")
T4CLKCON=1;
Note: Its worked without "T4_START_IMMEDIATELY" on setup timer4.
setup_timer_4(T4_CLK_INTERNAL ... |
Topic: Timer4 setup |
jpts
Replies: 8
Views: 14667
|
Forum: General CCS C Discussion Posted: Tue Jun 27, 2017 12:22 pm Subject: Timer4 setup |
Complementing ...compiler 5.070
#include <16F18857.h>
#device ADC=10
#use delay(crystal=20000000)
#FUSES NOBROWNOUT
#FUSES NOLVP
#FUSES NOWDT
#FUSES NOPPS1WAY
#FUSES S ... |
Topic: Timer4 setup |
jpts
Replies: 8
Views: 14667
|
Forum: General CCS C Discussion Posted: Tue Jun 27, 2017 11:17 am Subject: Timer4 setup |
Why TIMER4 is not running interrupt call....printout message "interrupt4"
#INT_TIMER4
void TIMER4_isr(void)
{printf ("Interrupt 4!\r\n ");}
void ... |
Topic: Set Timer0 and Timer1 |
jpts
Replies: 2
Views: 9134
|
Forum: General CCS C Discussion Posted: Tue May 23, 2017 11:42 am Subject: Set Timer0 and Timer1 |
I opened a new post for help about setting Timer0 and Timer1 of PIC16F18857. Last post you give little idea about setting PPS, but still need your help until I full understand the logic of PPS and na ... |
Topic: Setting PIC Register |
jpts
Replies: 11
Views: 20689
|
Forum: General CCS C Discussion Posted: Mon May 22, 2017 6:29 pm Subject: Setting PIC Register |
Worked !!!!! you are amazing...thanks a lot !
Happy and same time concerned. I change my project MCU from PIC16F876 to 16F18857. Reason more program memory. I am not familiar with PPS and setups. ... |
Topic: Setting PIC Register |
jpts
Replies: 11
Views: 20689
|
Forum: General CCS C Discussion Posted: Mon May 22, 2017 12:36 pm Subject: Setting PIC Register |
#include <16F18857.h>
#use delay(crystal=20MHz)
#use rs232(baud=9600,parity=N,xmit=PIN_C6,rcv=PIN_C7,bits=8,stream=PORT1,errors)
#FUSES NOBROWNOUT
#FUSES NOL ... |
Topic: Setting PIC Register |
jpts
Replies: 11
Views: 20689
|
Forum: General CCS C Discussion Posted: Mon May 22, 2017 11:49 am Subject: Setting PIC Register |
Still not working...following the program. Vs used: 5.071
int x;
#INT_RDA
void RDA_isr(void)
{ x = getc();
printf("RDA working");
}
#BIT RCI ... |
Topic: Setting PIC Register |
jpts
Replies: 11
Views: 20689
|
Forum: General CCS C Discussion Posted: Mon May 22, 2017 10:52 am Subject: Setting PIC Register |
Still not working. The USART Received interrupt not running.
There is a way to check status oF RCIEF ...like Printf(RCIE);
I used:
#BIT RCIE=getenv("BIT:RCIE")
void mai ... |
|