Re: [Sdcc-user] PIC18F2620 a/d module routine

2007-10-30 Thread Stanley Lee
I have applied the patches and the modified .h and .c files of interest are attached in the tarball along with this email. I haven't recompiled and reinstall sdcc as I don't really know how to do so with a nightly snapshot tarball, nor am I sure if the modified source files with the sdcc are modifi

Re: [Sdcc-user] PIC18F2620 a/d module routine

2007-10-29 Thread sdcc
Stanley Lee schrieb: > Hi, > > Here's more news about the progress so far. I have added Jan's code on > the initialization in the initialization.c file. My quesiton on the > initialization is the fact that I'm unsure of how I should deal with the > first parameter of adc_open function. I have type

Re: [Sdcc-user] PIC18F2620 a/d module routine

2007-10-29 Thread sdcc
Hi Stanley Lee schrieb: > If my application only requires me to use one a/d channel, with the > input of the signal being non-periodic (changes relatively slowly, i.e. > change from 2.5 V to 3 V and stay there for at least a few seconds), > would the acquisition time that I set in ADCON2 matter (I

Re: [Sdcc-user] PIC18F2620 a/d module routine

2007-10-28 Thread Stanley Lee
Hi, Here's more news about the progress so far. I have added Jan's code on the initialization in the initialization.c file. My quesiton on the initialization is the fact that I'm unsure of how I should deal with the first parameter of adc_open function. I have typed in my guess after looking at ad

Re: [Sdcc-user] PIC18F2620 a/d module routine

2007-10-28 Thread Stanley Lee
Hi, I haven't reworked my code based on the recommendations yet, but I would like to make a reply on some comments. If my application only requires me to use one a/d channel, with the input of the signal being non-periodic (changes relatively slowly, i.e. change from 2.5 V to 3 V and stay there f

Re: [Sdcc-user] PIC18F2620 a/d module routine

2007-10-28 Thread sdcc
Hi Stanley Lee wrote: > The project folder that I have so far is in > http://www.mediafire.com/?c1444jbnizc b/c the message would get > otherwise too large to be posted. What I'm trying to do right now is get > the a/d conversion module working, and see the output on a combination > of LEDs, throu

[Sdcc-user] PIC18F2620 a/d module routine

2007-10-28 Thread Stanley Lee
The project folder that I have so far is in http://www.mediafire.com/?c1444jbnizc b/c the message would get otherwise too large to be posted. What I'm trying to do right now is get the a/d conversion module working, and see the output on a combination of LEDs, through USART to the computer on termi