fiqnowf WROTE:hallo...
need help or idea everyone here...how to write a program pic 16f/ sd card interface using mikroC
here the idea: the IR sensor convert the analog to digital data and display it to LCD,
the process run continuously until we push one button and at the same time the data which is
display on lcd will transfer to micro sd card.
really appreciate the help..tq
There are libraries for SDCard, LCD and the ADC in the MikroC. It's just mainly straightforward. Read the examples provided in the manual. (Hardware Libraries)
Some of the PIC16F microcontrollers lack of hardware SPI modules. If you need more speed, you may need those with the SPI, or use some of the newer PIC18F microcontrollers which are C-optimized.
However, you might need to fine-tune the ADC system inside if you need more control of the conversion. (conversion time, clock speed,
voltage reference*, left or right justified et cetera)
Button debouncing must be implemented to prevent unwanted oscillations and erroneous data.
* Voltage reference is defaulted at supply voltage if you are using onboard MikroC library. If you have a variable voltage reference, you may need to set the registers manually.
PIC - UIC00B from Cytron (replacement for my broken PICKit 2), Pickit 3, MikroC for PIC
dsPIC - MikroC for dsPIC, mikromedia board (dsPIC33)
AVR - AVR Dragon
Parallax - Prop tool