Author |
Message |
Topic: Another DS1307 driver |
esa
Replies: 34
Views: 341900
|
Forum: Code Library Posted: Sun Sep 25, 2016 9:08 am Subject: Another DS1307 driver |
In the source code, do you comment the line
#define RTC_SDA PIN_C4
#define RTC_SCL PIN_C3
#use i2c(master, sda=RTC_SDA, scl=RTC_SCL)
Are you sure I2C works for other devices?
I use soft I2 ... |
Topic: PIC18F2550 doesn't start each time on RESET button pressed |
esa
Replies: 6
Views: 14463
|
Forum: General CCS C Discussion Posted: Sun Dec 20, 2015 10:20 am Subject: PIC18F2550 doesn't start each time on RESET button pressed |
Ok, I answer to myself :
I didn't have defined a function for INT2
#INT_EXT2
void EXT2_isr(void)
{
}
If the INT routine isn't defined, then the progam stuc ... |
Topic: PIC18F2550 doesn't start each time on RESET button pressed |
esa
Replies: 6
Views: 14463
|
Forum: General CCS C Discussion Posted: Sun Dec 20, 2015 9:49 am Subject: PIC18F2550 doesn't start each time on RESET button pressed |
Dear,
It took me a while before I found a solution and I want to share my experience.
1) The context :
1.1) I have a test Printed circuit Board where I can place a PIC16F877 or a PIC 18F2550.
... |
Topic: Library and example for RFM69W module |
esa
Replies: 5
Views: 50084
|
Forum: Code Library Posted: Sun Mar 29, 2015 10:33 am Subject: Library and example for RFM69W module |
Hi,
I'm not able to download the RAR file.
It points to something unavailable or it is detected as containing a virus.
Can you make it available on Google+?
Best Regards
Eric |
Topic: Another DS1307 driver |
esa
Replies: 34
Views: 341900
|
Forum: Code Library Posted: Sat Jan 24, 2015 8:51 am Subject: Another DS1307 driver |
I just try it 10 years later your first post and it works.
But, When I reset the the µP (16F877) the day is reset to '0'.
If I comment the line "ds1307_init();" then the day stay righ ... |
Topic: RHT03 Driver |
esa
Replies: 4
Views: 14344
|
Forum: General CCS C Discussion Posted: Sat Mar 22, 2014 2:29 pm Subject: RHT03 Driver |
Thank a lot for the code.
I was able to read the device using your code in less than 10 minutes.
Now, I will analyze it to understand how it works. |
Topic: Delay in hours |
esa
Replies: 4
Views: 7380
|
Forum: General CCS C Discussion Posted: Thu Mar 20, 2008 12:46 pm Subject: Delay in hours |
You can use a interrupt using timer0 or timer1.
Configure to call this timer each 100ms
In this timer increment a variable : centms++
if centms==10 then sec++
if sec==60 the minut++
etc...etc.... ... |
Topic: Random reset - 18F4550 |
esa
Replies: 3
Views: 4858
|
Forum: General CCS C Discussion Posted: Sun Feb 24, 2008 11:20 am Subject: Random reset - 18F4550 |
Dear kevin,
I'm not sure ( because , I'm a beginner ).
But, you can add this :
#FUSES NOWDT //No Watch Dog Timer
#FUSES HS //High speed Osc (> 4mhz ... |
Topic: RS-485 synchronism method |
esa
Replies: 12
Views: 23495
|
Forum: General CCS C Discussion Posted: Fri Feb 22, 2008 3:30 pm Subject: RS-485 synchronism method |
I think, RTS must be connected to T1In and not R1in
Nevertheless, to control your RE/DE line, you can also check here :
http://www.rs485.com/
there is a lot of schematic.
I make this one to con ... |
Topic: Some LCD |
esa
Replies: 22
Views: 21060
|
Forum: General CCS C Discussion Posted: Fri Feb 22, 2008 3:01 pm Subject: Some LCD |
Dear Julien,
you can also check here for a good explanation :
http://ouwehand.net/~peter/lcd/lcd.shtml
Normally, for a 4x16 character, you must see after power up ( and contrast adjustment ):
... |
Topic: Some LCD |
esa
Replies: 22
Views: 21060
|
Forum: General CCS C Discussion Posted: Wed Feb 20, 2008 1:01 pm Subject: Some LCD |
Dear julien,
I also make my one code to control a 4x20 LCD characters.
- The code is for 4 bits interface.
- The LCD can be write and read ( to read a password for example entered by a keyboard )
... |
Topic: (f)printf format %u %d broken ? |
esa
Replies: 13
Views: 34020
|
Forum: General CCS C Discussion Posted: Sun Feb 10, 2008 5:47 am Subject: (f)printf format %u %d broken ? |
I try your code with PCH V4.055
And good working
You can see here, PCD is in develpoment and some error about printf :
http://www.ccsinfo.com/content.php?page=pcdstatus
Maybee, you can send a ... |
Topic: Migrating to better PIC, concerned about CCS support |
esa
Replies: 6
Views: 7178
|
Forum: General CCS C Discussion Posted: Sun Feb 10, 2008 5:17 am Subject: Migrating to better PIC, concerned about CCS support |
If you hesitate and want to make test, it's always possible to have Sample Item from microchips :
It's possible to choose 4 differents devices x 3
http://sample.microchip.com/
I make a or ... |
Topic: Counter for number of RESET |
esa
Replies: 5
Views: 7723
|
Forum: General CCS C Discussion Posted: Sun Feb 10, 2008 5:05 am Subject: Counter for number of RESET |
dear ckielstra,
That's exactly what I need ( and maybe more ).
So, thanks a lot, for this informations.
I will use "restart_cause".
Regards
Eric
Case closed |
Topic: Counter for number of RESET |
esa
Replies: 5
Views: 7723
|
Forum: General CCS C Discussion Posted: Sat Feb 09, 2008 4:45 am Subject: Counter for number of RESET |
Dear users,
I use a external WatchDog device ( MAX6301) to reset the PIC in case of hangUp. So, it's a real reset on the PIN MCLR.
How can I count the number of reset ?
I already do that by setting ... |
|