Author |
Message |
Topic: Timer 2 Question. |
tcruise7771
Replies: 3
Views: 6258
|
Forum: General CCS C Discussion Posted: Tue Jun 25, 2013 6:50 am Subject: Timer 2 Question. |
Mike you are right , i just checked the video i made for the comparison with real oscilloscope and it was showing 305.1 but somehow i remembered it showed exact value.
You are right that i should r ... |
Topic: Timer 2 Question. |
tcruise7771
Replies: 3
Views: 6258
|
Forum: General CCS C Discussion Posted: Tue Jun 25, 2013 5:49 am Subject: Timer 2 Question. |
Hello .
I have a question about Timer 2. I have a program for PWM.
I am running it on PIC18F4550 at 5MHz using external crystal of 20MHz, and fuses HS, PLL5 and CPUDIV4 ( so it will run at 5MHz) ... |
Topic: Buttons , Internal pull up ? |
tcruise7771
Replies: 5
Views: 13754
|
Forum: General CCS C Discussion Posted: Sun Jun 23, 2013 11:41 am Subject: Buttons , Internal pull up ? |
Ok hardware it is then. I am using port B for 8bit parallel communication for 128x64 display so port B is already used up I have some pins from C available and alot of pins on port D, so i will se ... |
Topic: Buttons , Internal pull up ? |
tcruise7771
Replies: 5
Views: 13754
|
Forum: General CCS C Discussion Posted: Sat Jun 22, 2013 6:46 pm Subject: Buttons , Internal pull up ? |
Yes i am using:
but_C= input(PIN_C6) and then
while (input(PIN_C6) != but_C) {....
I know how the pull up resistor works, but my teacher mentioned to me that there is a way to use the internal pu ... |
Topic: Buttons , Internal pull up ? |
tcruise7771
Replies: 5
Views: 13754
|
Forum: General CCS C Discussion Posted: Sat Jun 22, 2013 11:47 am Subject: Buttons , Internal pull up ? |
PIC16F877A and PIC18F4550.
Hello i have a PCB that i made , it already has 2 buttons with pullup resistors ( 5V-> 4.7K res-> Pin . When button is pressed it grounds the input. They work fine ... |
Topic: Source printing? Export source to png?jpg? |
tcruise7771
Replies: 6
Views: 7228
|
Forum: General CCS C Discussion Posted: Fri Jun 21, 2013 9:46 am Subject: Source printing? Export source to png?jpg? |
From all the variants i found out the best was PDF. My initial idea was making too much mess of the document. The only problem of PDF is that for example #include <PIC16F877A.h> becomes < ... |
Topic: Frequency , Timer1 and Division question. |
tcruise7771
Replies: 5
Views: 8514
|
Forum: General CCS C Discussion Posted: Fri Jun 21, 2013 8:52 am Subject: Frequency , Timer1 and Division question. |
Guys guys, i said "i am using 20MHz crystal , PIC16F877A at 20MHz, t1_overflow for exactly 1 second and i use it to make32(msb,lsb). So the value would be as big as the counts the timer can disti ... |
Topic: Frequency , Timer1 and Division question. |
tcruise7771
Replies: 5
Views: 8514
|
Forum: General CCS C Discussion Posted: Fri Jun 21, 2013 5:15 am Subject: Frequency , Timer1 and Division question. |
Quick question I have a Frequency Counter , but i have no source to test its real maximum frequency limit. The highest i tested was 750kHz with step of 1Hz and it was pretty acurate like 0.02% or more ... |
Topic: Source printing? Export source to png?jpg? |
tcruise7771
Replies: 6
Views: 7228
|
Forum: General CCS C Discussion Posted: Thu Jun 20, 2013 1:32 pm Subject: Source printing? Export source to png?jpg? |
Ttelmah, your advice led me to the idea of choosing Microsoft XPS Document Writer and all text is saved with the formatting and colors.
Weirdly all the virtual pdf printers i found reported some kind ... |
Topic: Source printing? Export source to png?jpg? |
tcruise7771
Replies: 6
Views: 7228
|
Forum: General CCS C Discussion Posted: Thu Jun 20, 2013 8:43 am Subject: Source printing? Export source to png?jpg? |
Hello i have program that i want to copy some of the fragments/parts of it into a .doc file and keeping the formatting and colors of the text. So far i have been doing such thing by making a print sc ... |
Topic: Question about storing a variable into pic eeprom. |
tcruise7771
Replies: 7
Views: 12371
|
Forum: General CCS C Discussion Posted: Mon Jun 10, 2013 3:38 am Subject: Question about storing a variable into pic eeprom. |
Ttelmah,
thanks for the detailed information. I was very confused on when BAD DATA happens in EEPROM. I see i shouldn't worry that much about it since writing to the EEPROM will only be done for th ... |
Topic: Question about storing a variable into pic eeprom. |
tcruise7771
Replies: 7
Views: 12371
|
Forum: General CCS C Discussion Posted: Sun Jun 09, 2013 11:43 pm Subject: Question about storing a variable into pic eeprom. |
asmboy i have initialised the checksum
unsigned int16 tempchksum
tempchksum= make16((read_eeprom(2),read_eeprom(3);
if (chksum !=tempchksum)
its just your c ... |
Topic: Question about storing a variable into pic eeprom. |
tcruise7771
Replies: 7
Views: 12371
|
Forum: General CCS C Discussion Posted: Sun Jun 09, 2013 3:46 pm Subject: Question about storing a variable into pic eeprom. |
unsigned int16 chksum;
chksum=0xC55C;
write_eeprom(0, varhigh);
chksum +=varhigh;
write_eeprom(1, varlow);
// to write LSB
chksum +=varlow;
write_eeprom(2, make8 ... |
Topic: Question about storing a variable into pic eeprom. |
tcruise7771
Replies: 7
Views: 12371
|
Forum: General CCS C Discussion Posted: Sun Jun 09, 2013 2:24 pm Subject: Question about storing a variable into pic eeprom. |
Hello,
I have PIC18F4550 (48 MHz) and PIC16F877A( 20MHz). I Have different codes running on both of them but basically they both depend on a variable that is used as a multiplier.
int16 multipli ... |
Topic: FUSES for PIC18F4550 to run at 32kHz , 1 MHz or 4 MHz ? |
tcruise7771
Replies: 5
Views: 15187
|
Forum: General CCS C Discussion Posted: Tue May 28, 2013 2:33 am Subject: FUSES for PIC18F4550 to run at 32kHz , 1 MHz or 4 MHz ? |
Thanks Ttelmah , if i select INTEC what other fuses i would need to select to tell to use the first +/-10% , HF ? Does that 10% is constant during the PIC running time, or it changes like every secon ... |
|