Author |
Message |
Topic: internal EEPROM of PIC16F877A #rom |
leevise
Replies: 12
Views: 19331
|
Forum: General CCS C Discussion Posted: Mon Feb 18, 2013 8:19 am Subject: internal EEPROM of PIC16F877A #rom |
I use the Debug mode, when watch the
min = read_eeprom(0x01);
I got the error code ERROR #117:Improper use of a function identifier, the lED display the min=1, it should get 00.
Why ? |
Topic: internal EEPROM of PIC16F877A #rom |
leevise
Replies: 12
Views: 19331
|
Forum: General CCS C Discussion Posted: Mon Feb 04, 2013 9:16 pm Subject: internal EEPROM of PIC16F877A #rom |
Your #int_rb function doesn't clear the mismatch condition that causes
the Interrupt-on-Change interrupt. To do this, you must read PortB
in the interrupt routine. Add the lines shown in bold belo ... |
Topic: internal EEPROM of PIC16F877A #rom |
leevise
Replies: 12
Views: 19331
|
Forum: General CCS C Discussion Posted: Mon Feb 04, 2013 7:36 pm Subject: internal EEPROM of PIC16F877A #rom |
Post a small but complete test program that shows all the variable
declarations, and that compiles OK. Also post your compiler version.
my code is as follow:
#include <16f877a.h>
#f ... |
Topic: internal EEPROM of PIC16F877A #rom |
leevise
Replies: 12
Views: 19331
|
Forum: General CCS C Discussion Posted: Mon Feb 04, 2013 6:51 pm Subject: internal EEPROM of PIC16F877A #rom |
write_eeprom(0x2100 + byte_address, value);
then to read:
read_eeprom(0x2100 + byte_address);
This is wrong. You do not add the hardware address of the data eeprom
to the basic address.
... |
Topic: internal EEPROM of PIC16F877A #rom |
leevise
Replies: 12
Views: 19331
|
Forum: General CCS C Discussion Posted: Mon Feb 04, 2013 8:18 am Subject: internal EEPROM of PIC16F877A #rom |
I'm surprised it runs at all:
#fuses XT,NOWDT,PUT,NOPROTECT
#use delay(CLOCK=14000000)
What is the maximum clock rate supported by XT?.
Best Wishes
I wrote it wrong, it should ... |
Topic: internal EEPROM of PIC16F877A #rom |
leevise
Replies: 12
Views: 19331
|
Forum: General CCS C Discussion Posted: Mon Feb 04, 2013 7:17 am Subject: internal EEPROM of PIC16F877A #rom |
hello guys
I use the internal eeprom for saving "min,sec"value ,it is a RTC project.
my code is as follow"
#include <16f877a.h>
#fuses XT,NOWDT,PUT,NOPROTECT
#use de ... |
Topic: Timer0 and timer1 function (flag bit how to deal ) |
leevise
Replies: 5
Views: 14766
|
Forum: General CCS C Discussion Posted: Fri Dec 21, 2012 7:18 am Subject: Timer0 and timer1 function (flag bit how to deal ) |
Seriously, use your eyes, brain, manual and examples:
This:
void interrupt ISR(void)
{
if (TMR0IF==1)
{
TMR0IF=0; //clear TMR1 overflow flag
... |
Topic: Timer0 and timer1 function (flag bit how to deal ) |
leevise
Replies: 5
Views: 14766
|
Forum: General CCS C Discussion Posted: Fri Dec 21, 2012 1:07 am Subject: Timer0 and timer1 function (flag bit how to deal ) |
#int_timer0
void timer0_int() //Um. It is an interrupt, not an initialisation
{
//Er. If the interrupt is called, then TMR0IF, will always be set
//The compiler automatical ... |
Topic: Timer0 and timer1 function (flag bit how to deal ) |
leevise
Replies: 5
Views: 14766
|
Forum: General CCS C Discussion Posted: Thu Dec 20, 2012 7:47 am Subject: Timer0 and timer1 function (flag bit how to deal ) |
I make a clock via segment display. The code was programed by PICC, but I want to translate to CCS code,there are some flag bit is used in PICC, but how to translating CCS code ? pls help me
about ... |
Topic: Timer0 and timer1 function (flag bit how to deal ) |
leevise
Replies: 5
Views: 14766
|
Forum: General CCS C Discussion Posted: Wed Dec 19, 2012 7:08 pm Subject: Timer0 and timer1 function (flag bit how to deal ) |
Hello guys
I used the timer0 and timer1 as timer clock, but I use the PICC code. Now I need make it to CCS code, there are some questions when I translate the code.
1) how to open or close the ... |
Topic: what's the Rotary Encode switch ?how to use it |
leevise
Replies: 1
Views: 4285
|
Forum: General CCS C Discussion Posted: Sat Aug 18, 2012 4:01 am Subject: what's the Rotary Encode switch ?how to use it |
Hello guys
I used the rotary encode switch, but i never meet this device. i use the device in my project that adjust the PWM .
who can give me a support for this? |
Topic: DS1302 display error |
leevise
Replies: 10
Views: 14949
|
Forum: General CCS C Discussion Posted: Sun Nov 27, 2011 11:35 pm Subject: DS1302 display error |
You may have damaged the chip !
Have you tried writing and reading known data to the RAM on the DS1302 ?
If that test works, then I suggest the RTC part of the chip is defective.
If it fails, t ... |
Topic: DS1302 display error |
leevise
Replies: 10
Views: 14949
|
Forum: General CCS C Discussion Posted: Sat Nov 26, 2011 6:11 pm Subject: DS1302 display error |
I never heard of it in this application. It's not recommended by Maxim.
Use the specified crystal (32.768 KHz, 6 pf load).
I take out those capactors, it also doesn't work, the LCD display
44/ ... |
Topic: DS1302 display error |
leevise
Replies: 10
Views: 14949
|
Forum: General CCS C Discussion Posted: Fri Nov 25, 2011 3:05 am Subject: DS1302 display error |
Your schematic shows capacitors on the crystal. The ds1302 data sheet
says specifically not to do this:
OSCILLATOR CIRCUIT
The DS1302 uses an external 32.768kHz crystal. The oscillator circuit ... |
Topic: DS1302 display error |
leevise
Replies: 10
Views: 14949
|
Forum: General CCS C Discussion Posted: Thu Nov 24, 2011 7:21 pm Subject: DS1302 display error |
pin1 Vc2-------5V, pin1 & pin2------Crystal
Here you claim to have pin 1 used for both Vcc2 and the crystal.
That's not correct.
What is your CCS compiler version ?
Sorry, I wrote wron ... |
|