Author |
Message |
Topic: Timer based RTC with 16F526 |
saksun
Replies: 13
Views: 23812
|
Forum: General CCS C Discussion Posted: Tue Oct 31, 2017 2:54 am Subject: Timer based RTC with 16F526 |
Timer based Real Time Clock (RTC) by ckielstra:
http://www.ccsinfo.com/forum/viewtopic.php?t=26177
Hi,
Can I use this code for pic16f526 ? If yes then how ?
Because I don't have interrupts i ... |
Topic: counter programming |
saksun
Replies: 8
Views: 17150
|
Forum: General CCS C Discussion Posted: Mon Jul 10, 2017 12:54 am Subject: counter programming |
start reading up on interrupts and timers.
In my pic i don't have interrupt. so want to do without interrupt.
is it possible without interrupt?? |
Topic: counter programming |
saksun
Replies: 8
Views: 17150
|
Forum: General CCS C Discussion Posted: Sat Jul 08, 2017 6:13 am Subject: counter programming |
Im scanning 4 pairs of ir led's and using 2 pic controllers for transmitter and receiver separately. I want to sound a buzzer when my ir beam cut for 15 sec continuosly. other wise not.
and my code ... |
Topic: counter programming |
saksun
Replies: 8
Views: 17150
|
Forum: General CCS C Discussion Posted: Mon Jul 03, 2017 11:00 pm Subject: counter programming |
hello everyone,
I want to do counter coding. I'm using pic16f526 with 8Mhz internal oscillator. My compiler is CCS v5.071d. I'm first time doing counter programming i don't have any idea how t ... |
Topic: how can I generate pulses on clkin pin |
saksun
Replies: 10
Views: 17722
|
Forum: General CCS C Discussion Posted: Mon Jun 19, 2017 6:59 am Subject: how can I generate pulses on clkin pin |
1) you will need to add the resistor/transistor/diode as they show on page 2 or 3 of the data sheet. That buzzer can draw over 100 ma so if you connect directly tot he PIC you WILL destroy the PIC.
... |
Topic: how can I generate pulses on clkin pin |
saksun
Replies: 10
Views: 17722
|
Forum: General CCS C Discussion Posted: Mon Jun 19, 2017 4:39 am Subject: how can I generate pulses on clkin pin |
When posting questions you should always post the part number, better yet a 'link' to the devices you want to use. That way we can easily decide if it's a good part for you
I'm using magnetic buz ... |
Topic: how can I generate pulses on clkin pin |
saksun
Replies: 10
Views: 17722
|
Forum: General CCS C Discussion Posted: Sat Jun 17, 2017 2:05 am Subject: how can I generate pulses on clkin pin |
Can you give any sample code for this?? |
Topic: how can I generate pulses on clkin pin |
saksun
Replies: 10
Views: 17722
|
Forum: General CCS C Discussion Posted: Sat Jun 17, 2017 12:29 am Subject: how can I generate pulses on clkin pin |
Hi...
I'm using ccs vs-5.017d and working on pic16f526.
I connected switch to clkin pin and buzzer to clkout pin of my controller. I want to turn on buzzer using clk pulse.
That pin is worki ... |
Topic: io settings in pic16f506 |
saksun
Replies: 11
Views: 19477
|
Forum: General CCS C Discussion Posted: Sat Jun 17, 2017 12:21 am Subject: io settings in pic16f506 |
Thank you all,
My code and hardware are both working good.
Thank you for all your support. |
Topic: io settings in pic16f506 |
saksun
Replies: 11
Views: 19477
|
Forum: General CCS C Discussion Posted: Mon Jun 12, 2017 4:08 am Subject: io settings in pic16f506 |
You can create connections by accident. For instance if your output connects to an LED without an adequate current limiting resistor, one output could reset the chip, and apparently affect the other. ... |
Topic: io settings in pic16f506 |
saksun
Replies: 11
Views: 19477
|
Forum: General CCS C Discussion Posted: Mon Jun 12, 2017 1:34 am Subject: io settings in pic16f506 |
is their any relation between RB2 and RB4?
why rb4 affected on rb2
in this code...
#include <16F506.H>
#fuses INTRC_IO,IOSC4,NOWDT,MCLR
#use delay(clock=4M)
//=============== ... |
Topic: io settings in pic16f506 |
saksun
Replies: 11
Views: 19477
|
Forum: General CCS C Discussion Posted: Sat Jun 10, 2017 4:22 am Subject: io settings in pic16f506 |
hello...
I don't know what CCS compiler version you have. You didn't tell us.
im using PCB vs 5.017d |
Topic: io settings in pic16f506 |
saksun
Replies: 11
Views: 19477
|
Forum: General CCS C Discussion Posted: Fri Jun 09, 2017 11:20 pm Subject: io settings in pic16f506 |
i tried this code but it's not working .....
showing led on rb2 pin continuously off....
what should do???
setup_comparator(NC_NC); // Turn off comparators
i think this will turn off com ... |
Topic: PIC16F526 - Hello World |
saksun
Replies: 12
Views: 22376
|
Forum: General CCS C Discussion Posted: Fri Jun 09, 2017 1:19 am Subject: PIC16F526 - Hello World |
hi,
I tried same code with only changed port c to port b and code is not working.
It compiled with no errors but on Proteus there is no toggling of leds which are connected to port b, rb1 and rb2. ... |
Topic: io settings in pic16f506 |
saksun
Replies: 11
Views: 19477
|
Forum: General CCS C Discussion Posted: Thu Jun 08, 2017 4:02 am Subject: io settings in pic16f506 |
How to disable c1out alternative pin of rb2 in pic16f506 microcontroller??
And how use that pin as output?? using ccs compiler... |
|