Author |
Message |
Topic: Battery recommendation |
simon630
Replies: 2
Views: 11774
|
Forum: General CCS C Discussion Posted: Thu Dec 25, 2003 11:01 pm Subject: Battery recommendation |
dear friends,
I am now looking for one high capacity, high pulse current (about 100mA), and tiny size battery. The best i can find is alkaline LR43 from energizer with 80mAh. btw, not rechargeable on ... |
Topic: how to store a static variable in the rom? |
simon630
Replies: 9
Views: 27556
|
Forum: General CCS C Discussion Posted: Wed Sep 10, 2003 3:24 am Subject: how to store a static variable in the rom? |
oh. the ram part i am using now is 24cl64 from Ramtron. the data in the first few addresses tends to be corrupt quite easily. i am not sure whether other friends encounter this b4. this chip did provi ... |
Topic: how to store a static variable in the rom? |
simon630
Replies: 9
Views: 27556
|
Forum: General CCS C Discussion Posted: Tue Sep 09, 2003 2:04 am Subject: how to store a static variable in the rom? |
thx, Mark. after reading the Faq, i thought it is not answering my question.
what i want to store in the ROM is not constant actually. it is a user input string (eg. the serial no of this device) tha ... |
Topic: how to store a static variable in the rom? |
simon630
Replies: 9
Views: 27556
|
Forum: General CCS C Discussion Posted: Mon Sep 08, 2003 3:39 am Subject: how to store a static variable in the rom? |
thanks. then how about #ROM taking in variable instead of constant as its parameters? what i mean is sth like #ROM 0x2100={buf[0], buf[1]}
i understand that #ROM is expecting a constant parameters. b ... |
Topic: reading flash of 16F76 |
simon630
Replies: 4
Views: 17452
|
Forum: General CCS C Discussion Posted: Fri Sep 05, 2003 3:31 am Subject: Re: reading flash of 16F76 |
Good. data could be verified on the pic already although not on the emulator. i just compare the data read by the software and the one inside the object file. when they are equal i just light up one L ... |
Topic: reading flash of 16F76 |
simon630
Replies: 4
Views: 17452
|
Forum: General CCS C Discussion Posted: Thu Sep 04, 2003 7:38 pm Subject: Re: reading flash of 16F76 |
:=I'd suggest you look at the emulator 'limitations' page. On MPLAB, if I select the ICD option, and look at the limitations, it displays: :="If a single step sets the read bit of the PMCON1 register, ... |
Topic: reading flash of 16F76 |
simon630
Replies: 4
Views: 17452
|
Forum: General CCS C Discussion Posted: Thu Sep 04, 2003 4:12 am Subject: reading flash of 16F76 |
Dear friends,
Following is the code of Hamlett for accessing flash memory of 16LF76.
:=#byte PMCON1=0x18C :=#byte PMDATA=0x10C :=#byte PMADR=0x10D :=#byte PMADRH=0x10F :=#byte PMDATH=0x10E := ... |
Topic: can #undef, #define used in subroutine for memory addressing |
simon630
Replies: 1
Views: 12193
|
Forum: General CCS C Discussion Posted: Fri Jul 04, 2003 4:36 am Subject: can #undef, #define used in subroutine for memory addressing |
Hi, friends, I am wondering whether these two pre-processor directives could be used in subroutine. here is a sample programme.
#define SERIAL_NO 5 . . . void routine1(){ if (a>5) #undef SERIAL_NO ... |
Topic: rs232_errors+BIT6 |
simon630
Replies: 2
Views: 23479
|
Forum: General CCS C Discussion Posted: Mon Mar 10, 2003 4:21 am Subject: rs232_errors+BIT6 |
dear gurus, referring to page 45 of PCB,PCM, and PCW PICC Compiler reference manual, when Bit 6 of rs232_errors variable is set to one, it indicates a put failed in float high mode. could anybody exp ... |
Topic: RTC problem with x1226 |
simon630
Replies: 6
Views: 50282
|
Forum: General CCS C Discussion Posted: Mon Jan 27, 2003 6:02 am Subject: Re: RTC problem with x1226 |
:=:=1. :=delay_ms(10); // Add this delay statement :=:=because this development is a time critical application, i dont think i can afford 10ms delay during communication. if really need to put in the ... |
Topic: RTC problem with x1226 |
simon630
Replies: 6
Views: 50282
|
Forum: General CCS C Discussion Posted: Fri Jan 24, 2003 8:05 pm Subject: Re: RTC problem with x1226 |
:=:=dear friends, :=:= i am now having some problems with the rtc module x1226. i wrote the data to the rtc last night. and this morning when i came back, i found that the HR did not trigger. the corr ... |
Topic: RTC problem with x1226 |
simon630
Replies: 6
Views: 50282
|
Forum: General CCS C Discussion Posted: Wed Jan 22, 2003 8:07 pm Subject: RTC problem with x1226 |
dear friends, i am now having some problems with the rtc module x1226. i wrote the data to the rtc last night. and this morning when i came back, i found that the HR did not trigger. the correct time ... |
Topic: brownout |
simon630
Replies: 3
Views: 39036
|
Forum: General CCS C Discussion Posted: Mon Jan 20, 2003 7:55 pm Subject: Re: brownout |
:=:=HI, friends, :=:= i now want to insert NOBROWNOUT option into #fuses. :=:=but the compiler said it did not recognize this keyword. can anyone explain why? :=:= thx. :=:=Simon :=:=i try on these c ... |
Topic: brownout |
simon630
Replies: 3
Views: 39036
|
Forum: General CCS C Discussion Posted: Mon Jan 20, 2003 6:28 am Subject: brownout |
HI, friends, i now want to insert NOBROWNOUT option into #fuses. but the compiler said it did not recognize this keyword. can anyone explain why? thx. Simon i try on these compilers: icepic 2.20.40 ... |
Topic: ADC ref problem |
simon630
Replies: 4
Views: 45543
|
Forum: General CCS C Discussion Posted: Mon Jan 13, 2003 5:39 am Subject: ADC ref problem |
dear friends, i am now using the adc features of 16c73 chip. because the circuit is more or less finalized, my reference voltage has to stay at 2.5v at pinA3. and the monitored analog input is tied t ... |
|