Author |
Message |
Topic: pic12f683 weak pullups |
morebudwiser
Replies: 6
Views: 11717
|
Forum: General CCS C Discussion Posted: Tue Sep 15, 2009 9:00 am Subject: pic12f683 weak pullups |
Hi, I am trying to enable the internal weak pullups on a pic 12f683 but am not having any luck. I have tried the following code but it does not seem to work. Can anyone tell me how to do this? Many t ... |
Topic: do while loop not looping |
morebudwiser
Replies: 3
Views: 5569
|
Forum: General CCS C Discussion Posted: Wed Jul 16, 2008 1:07 pm Subject: do while loop not looping |
hi thanks for the reply s, you were correct the logic in the do while loop was incorrect your suggested code fix the problem |
Topic: do while loop not looping |
morebudwiser
Replies: 3
Views: 5569
|
Forum: General CCS C Discussion Posted: Tue Jul 15, 2008 4:49 pm Subject: do while loop not looping |
hi i want to go round a do while loop until the reading from my adc falls within a certain range. Here is the code for the loop i am using but seems to run down the code then not execute the loop. Is ... |
Topic: do while loop |
morebudwiser
Replies: 1
Views: 3446
|
Forum: General CCS C Discussion Posted: Tue Jul 01, 2008 4:51 am Subject: do while loop |
hi i want to go round my do while loop while port b pin 1 is low and my adc value is not = 2345 but my code comes out of the loop when ever the adc has the correct value and pin B0 is still low
... |
Topic: rounding numbers |
morebudwiser
Replies: 2
Views: 3576
|
Forum: General CCS C Discussion Posted: Sat Jun 28, 2008 4:22 pm Subject: rounding numbers |
hi i am trying to round up a float of for example 1.123456789 to
1.123 or an inter value of 12345 to 1234
many thanks Andrew |
Topic: number conversion |
morebudwiser
Replies: 3
Views: 4318
|
Forum: General CCS C Discussion Posted: Fri Jun 27, 2008 4:57 pm Subject: number conversion |
hi i am reading a 16bit adc and i am reading a value for example 0f 28766 but the last bit is not stable so i want to ignore or strip of the last digit so my reading is 2876 any suggestions please
... |
Topic: 18f4458 adc external voltage ref |
morebudwiser
Replies: 1
Views: 3439
|
Forum: General CCS C Discussion Posted: Wed Jun 18, 2008 7:09 am Subject: 18f4458 adc external voltage ref |
hi i am trying to set up my pic 18f4458 to use external voltage reference
so do i need to connect vref- pin to gnd and vref+ pin to the output of my 4.096 precision reference and then set the adc ... |
Topic: 18f4458 adc |
morebudwiser
Replies: 2
Views: 3769
|
Forum: General CCS C Discussion Posted: Wed Jun 18, 2008 4:34 am Subject: 18f4458 adc |
thanks |
Topic: 18f4458 adc |
morebudwiser
Replies: 2
Views: 3769
|
Forum: General CCS C Discussion Posted: Wed Jun 18, 2008 3:04 am Subject: 18f4458 adc |
hi is it possible to measure accurately 1.098 vdc +/- 1mv i have been trying
to read this voltage but when i display it on the lcd the last 2 digits are changing by as much as +/- 30mv. do i nee ... |
Topic: 18f4523 fuses |
morebudwiser
Replies: 1
Views: 3278
|
Forum: General CCS C Discussion Posted: Tue Jun 10, 2008 5:19 am Subject: 18f4523 fuses |
hi i have my test board built and tested using a pi16f877a. I now want to use a pic18f4523 but can not get it to run the same program that is running on the 16f877a i have changed the header file to ... |
Topic: timer 1 question |
morebudwiser
Replies: 3
Views: 3629
|
Forum: General CCS C Discussion Posted: Thu May 03, 2007 5:53 am Subject: timer 1 question |
i am using the ccm interrupt to generate the 5khz dont know if this is the best way or not i am open to suggestions. i did try switching an i/o pin high and low put this did not give me and equal mark ... |
Topic: timer 1 question |
morebudwiser
Replies: 3
Views: 3629
|
Forum: General CCS C Discussion Posted: Thu May 03, 2007 5:03 am Subject: timer 1 question |
hi i am using timer 1 to generate a 5kHz square wave but i would like to be able to load the timer with a preset number of pulses for it to generate. for example if i load the timer with 100 it will ... |
Topic: pic12c672 config |
morebudwiser
Replies: 1
Views: 4225
|
Forum: General CCS C Discussion Posted: Mon Oct 23, 2006 1:57 pm Subject: pic12c672 config |
hi im trying to use the project wizard to configure a pic 12c672 for internal oscillator but the option is greyed out can anyone advise me on how to enable the internal oscillator. i also wnat to conf ... |
Topic: EX_RS485.c compile error |
morebudwiser
Replies: 5
Views: 7075
|
Forum: General CCS C Discussion Posted: Fri Oct 13, 2006 3:34 am Subject: Ex_rs485_chat.c |
hi sorry i meant rs485_chat.c will not complie |
Topic: EX_RS485.c compile error |
morebudwiser
Replies: 5
Views: 7075
|
Forum: General CCS C Discussion Posted: Thu Oct 12, 2006 6:54 am Subject: EX_RS485.c compile error |
hi trying to complie rs485.c example program that comes with the complier (3.245) and it keeps coming back saying out of ROM a segement of is to large main 0003f
anyone know why im getting this er ... |
|