Author |
Message |
Topic: Need Comments on this method? |
Al
Replies: 6
Views: 14069
|
Forum: General CCS C Discussion Posted: Wed Apr 07, 2004 5:24 am Subject: Need Comments on this method? |
why not make each persons code the correct 16 bit number for the doors that thay have access too. if a person has acces to all doors his code would be 65535. you could use some type of encryption sche ... |
Topic: Need Comments on this method? |
Al
Replies: 6
Views: 14069
|
Forum: General CCS C Discussion Posted: Tue Apr 06, 2004 5:37 am Subject: Re: Need Comments on this method? |
Hi Ritchie,
My understanding is that you would require a 16bit word to be stored for every user. You could manitain a 2-D array for this.
int16 securityDatabase
This will give you a table with ... |
Topic: Problem with my Bootloader PIC18 |
Al
Replies: 1
Views: 8683
|
Forum: General CCS C Discussion Posted: Mon Apr 05, 2004 5:43 am Subject: Re: Problem with my Bootloader PIC18 |
These are 2 separate problems.
i wrote an bootloader and he works fine. today I want to compile again and i get an ERROR
invalid Org range
For the ORG error - do a search for INVALID ORG ra ... |
Topic: Compiler error |
Al
Replies: 1
Views: 8420
|
Forum: General CCS C Discussion Posted: Mon Mar 01, 2004 6:33 am Subject: Compiler error |
Are you sure this is where your problem lies? It compiles fine for me. I don't know what you have declared your variables as, but I declred them as ints.
int grados, centenas, num1, decenas, unida ... |
Topic: A/D conversion and interrupt timer conflict |
Al
Replies: 8
Views: 19327
|
Forum: General CCS C Discussion Posted: Thu Feb 19, 2004 6:43 am Subject: A/D conversion and interrupt timer conflict |
Aha! The problem only occurs when I use the debugger, as you implied Neutone. When I download the code and run the actual RS232 over hyperterminal it appears to work fine. |
Topic: A/D from 16F873 |
Al
Replies: 1
Views: 8848
|
Forum: General CCS C Discussion Posted: Wed Feb 18, 2004 8:48 am Subject: A/D from 16F873 |
Try including these lines
setup_counters( RTCC_INTERNAL, RTCC_DIV_256 | RTCC_8_BIT);
setup_adc_ports( RA0_RA1_RA3_RA4_ANALOG );
setup_adc(ADC_CLOCK_INTERNAL);
ensure your are connected to the ... |
Topic: A/D conversion and interrupt timer conflict |
Al
Replies: 8
Views: 19327
|
Forum: General CCS C Discussion Posted: Wed Feb 18, 2004 8:41 am Subject: A/D conversion and interrupt timer conflict |
Here is a condensed sample of the code I have been using. Although I am only reading one ADC channel, the problem remains.
NOTE: if either ISR is removed the problem goes away. So I'm thinking the ... |
Topic: A/D conversion and interrupt timer conflict |
Al
Replies: 8
Views: 19327
|
Forum: General CCS C Discussion Posted: Wed Feb 18, 2004 3:31 am Subject: A/D conversion and interrupt timer conflict |
Hi Neutone,
I am just reposting this so that you know it is from me. I didn't realise I was posting as guest the last time.
Sorry, I do actually have a call in the ISR to 'cmd=getch();'.
I shou ... |
Topic: atol() is making my life hell. HELP |
Al
Replies: 5
Views: 15607
|
Forum: General CCS C Discussion Posted: Tue Feb 17, 2004 10:01 am Subject: Re: atol() is making my life hell. HELP |
Oscarlj,
Can we see more/all of your code as I cannot follow the relationships between your variables here.
One thing which looks suspect however are the follwoing 2 lines:
if(s)
c = s[i ... |
Topic: A/D conversion and interrupt timer conflict |
Al
Replies: 8
Views: 19327
|
Forum: General CCS C Discussion Posted: Tue Feb 17, 2004 9:51 am Subject: A/D conversion and interrupt timer conflict |
I tried your suggestion Neutone - the problem is still present.
I have noticed that I have a second ISR (#int_rda) - when I comment this ISR out the A/D conversions work fine. Strange as I am not ... |
Topic: A/D conversion and interrupt timer conflict |
Al
Replies: 8
Views: 19327
|
Forum: General CCS C Discussion Posted: Tue Feb 17, 2004 4:36 am Subject: A/D conversion and interrupt timer conflict |
I am developing code using a 16F877 chip which has an interrupt routine which interrupts every second and sets PIN_C0 high and then low. A short time after the interrupt routine is called it will rea ... |
Topic: need code for internal oscilator for 16f88 |
Al
Replies: 4
Views: 10593
|
Forum: General CCS C Discussion Posted: Tue Feb 17, 2004 3:06 am Subject: Re: need code for internal oscilator for 16f88 |
Hello everyone.
I need a simple code to set up for 4Mhz internal oscilator for 16f88 mcu
I guess it is no the same as it would be for any other PIC, eg:
#include <16F88.h>
#use delay(clo ... |
Topic: What is a simple way to verify only one bit in a byte is set |
Al
Replies: 18
Views: 42273
|
Forum: General CCS C Discussion Posted: Mon Feb 16, 2004 6:50 am Subject: What is a simple way to verify only one bit in a byte is set |
Hi Neutone,
I haven't tested this code but it is just an idea. In theory it should work.
if(packet!=0){
for(i=7;!bit_test(packet, i);i--) ;
// i has found first errored bit
... |
Topic: converting hex into char |
Al
Replies: 2
Views: 10771
|
Forum: General CCS C Discussion Posted: Mon Feb 16, 2004 3:30 am Subject: Re: converting hex into char |
Is the data being read from the eeprom be the ascii code, or is it in hex..???
arun
It shouldn't really matter what form it is stored in the eeprom. Any format whether hex, char or decimal i ... |
Topic: I2c Stop bit problem |
Al
Replies: 1
Views: 8960
|
Forum: General CCS C Discussion Posted: Mon Feb 16, 2004 3:09 am Subject: I2c Stop bit problem |
Hi Leonardo,
Before issuing an i2c_stop you need to issue a no-acknowledge with your last communication before the i2c_stop. For example after doing a series of i2c_reads (issuing an 'acknowledge' ea ... |
|