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

[Sdcc-user] Constant with SDCC 2.7.0 on PIC16F877

2007-10-28 Thread plaunay1
Hello Thanks Raphael for your help I can put directly print("bonjour"); I give this very simple example, but I work with the I2c with the timer DS1307. I want to give the day and the month with const char semaine[7][9] ={ "lundi","mardi","mercredi","jeudi","vendredi","samedi","dimanche"}; con

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