Author |
Message |
Topic: PIC10F200 OSCCAL |
ViperARG
Replies: 1
Views: 8310
|
Forum: General CCS C Discussion Posted: Mon May 22, 2017 4:52 pm Subject: PIC10F200 OSCCAL |
Hi guys, I'm using Googlium training board and for some reason It lost OSCCAL value. On Pickit 2 says invalid osccal value detected and when I try to regenerate it says programming failed at memory ad ... |
Topic: ENC28J60 Hardware question |
ViperARG
Replies: 1
Views: 7096
|
Forum: General CCS C Discussion Posted: Wed Feb 15, 2017 2:55 pm Subject: ENC28J60 Hardware question |
Hi my PIC friends =), I found ENC28J60 on a MCU box at my university laboratory and I found out this one are used for the ethernet module. but this one is a 28 pin DIP package which I found very weird ... |
Topic: Bitwise operators HELP |
ViperARG
Replies: 3
Views: 10893
|
Forum: General CCS C Discussion Posted: Wed Feb 01, 2017 12:03 pm Subject: Bitwise operators HELP |
Also, as a further comment, >> & << are the generic 'C' shifts. However for a rotation, you might want to look at the rotate_right and rotate_left functions:
int8 val=0b000000 ... |
Topic: Bitwise operators HELP |
ViperARG
Replies: 3
Views: 10893
|
Forum: General CCS C Discussion Posted: Mon Jan 30, 2017 10:55 am Subject: Bitwise operators HELP |
Hi guys, I'm the noob again haha ^^.
I'm still learning C code and PICs, and I always used to switch pins like this PORTBbits.RB0 = 1; for example to do a simple LED chaser, but I saw "< ... |
Topic: PIC18F2550 INT_RC |
ViperARG
Replies: 2
Views: 9065
|
Forum: General CCS C Discussion Posted: Mon Jan 30, 2017 7:05 am Subject: PIC18F2550 INT_RC |
#include <18F2550.h>
#fuses NOMCLR INTRC_IO
#use delay(INTERNAL = 8MHz)
The default clock rate for the internal oscillator is not the 8MHz branch. You have to specify this to b ... |
Topic: PIC18F2550 INT_RC |
ViperARG
Replies: 2
Views: 9065
|
Forum: General CCS C Discussion Posted: Fri Jan 27, 2017 6:23 am Subject: PIC18F2550 INT_RC |
Hi lads, I want to use the internal oscillator on 18f2550 but delays are not ok. Delays are critical in my project cause I need to use a range with delay_us.
#include <18F2550.h>
#fuses N ... |
Topic: PIC12F675 INT |
ViperARG
Replies: 3
Views: 9327
|
Forum: General CCS C Discussion Posted: Fri Jan 13, 2017 3:43 pm Subject: PIC12F675 INT |
Does your button circuit look like this ? Or something else ?
In this circuit, when you press the button it puts Ground on the PIC pin.
When you don't press it, it has 5v on the pin.
... |
Topic: PIC12F675 INT |
ViperARG
Replies: 3
Views: 9327
|
Forum: General CCS C Discussion Posted: Fri Jan 13, 2017 2:52 pm Subject: PIC12F675 INT |
Hi dear friends =) !
I made this code for pic12f675 interrupt and I got it working but I don't know why when I press the button it won't initialize the interrupt until I switch it off. If I hold ... |
Topic: CCS C works on proteus not on physical PIC. |
ViperARG
Replies: 17
Views: 32010
|
Forum: General CCS C Discussion Posted: Mon Jan 09, 2017 8:07 am Subject: CCS C works on proteus not on physical PIC. |
There is an option 'Program calibration memory'. This needs to be unchecked.
This is under:
Properties->Categories=PICkit 3->Option categories=Memories to Program
I´ve got it thank you b ... |
Topic: pic18f2550 usb |
ViperARG
Replies: 2
Views: 8299
|
Forum: General CCS C Discussion Posted: Mon Jan 09, 2017 8:04 am Subject: pic18f2550 usb |
Hello people, I have a question...
What program or tool do you use to develop an application for Windows to control the MCU over USB, how hard is it ?
I know how to interface an LCD, analog input ... |
Topic: CCS C works on proteus not on physical PIC. |
ViperARG
Replies: 17
Views: 32010
|
Forum: General CCS C Discussion Posted: Sun Jan 08, 2017 4:43 pm Subject: CCS C works on proteus not on physical PIC. |
Some comments:
First you now begin to see how Proteus can mislead you.
Second erasing the calibration memory, is very carefully discussed in the data sheet. Including telling you that most programme ... |
Topic: CCS C works on proteus not on physical PIC. |
ViperARG
Replies: 17
Views: 32010
|
Forum: General CCS C Discussion Posted: Sun Jan 08, 2017 8:24 am Subject: CCS C works on proteus not on physical PIC. |
On the 675, this:
Buddy it worked!!! Thanks I been trying for so long! and would not figure this out in 10 years! =).
I'm using a 250ms delay and I measure it with the oscilloscope and is not ac ... |
Topic: CCS C works on proteus not on physical PIC. |
ViperARG
Replies: 17
Views: 32010
|
Forum: General CCS C Discussion Posted: Sun Jan 08, 2017 7:17 am Subject: CCS C works on proteus not on physical PIC. |
I gonna try it and tell you how it went, many thanks to you and the people of this community, coming from Arduino IDE this is some scary stuff. Everything is so raw =D. |
Topic: CCS C works on proteus not on physical PIC. |
ViperARG
Replies: 17
Views: 32010
|
Forum: General CCS C Discussion Posted: Sun Jan 08, 2017 4:07 am Subject: CCS C works on proteus not on physical PIC. |
I suspect PCM_programmer's suggestion that you have erased the chip fully, is probably the cause.
I've just tried this with 3.249, 4.099, 4.141, and 5.066, and with all it runs fine.
So, do what h ... |
Topic: CCS C works on proteus not on physical PIC. |
ViperARG
Replies: 17
Views: 32010
|
Forum: General CCS C Discussion Posted: Sat Jan 07, 2017 11:06 pm Subject: CCS C works on proteus not on physical PIC. |
not even blink an LED
Post your test program to blink an LED with CCS. We want to see the
#include line for the PIC, the #fuses statement, #use delay(), main(), etc.
Also post a link to the sch ... |
|