> ---------------------------------------- > I known C, and I have already wrote code in C and C++, > I know how to read/write pin (so on/off) led. > My problem is how to read analog value from this pic 16f628 with sdcc. > > Thanks in advance. > > v.
You've probably chosen wrong processor. AFAIK 16F628 does have just 2 comparators but no ADC. Shortly for you: 1. Datasheet for 16F628 (or any other processor) is your best friend. You can get it on Microchip pages. There are examples how to configure and use blocks as well. 2. You likely can't connect electret microphone directly to ADC ( any ADC, not only Microchip's ADCs). You will need some audio amplifier to boost the signal and low-pass anti-aliasing filter. 3. Everything is in your hands. Read the manual, try to write some code, test it and so on. This forum is not the right one to help you select the right processor and the right tools. There are better forums - for example on www.microchip.com pages V. ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ Sdcc-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sdcc-user
