micro sd card

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

micro sd card

Postby fiqnowf » Sun Feb 27, 2011 4:10 am

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
fiqnowf
Greenhorn
 
Posts: 3
Joined: Sun Feb 27, 2011 3:48 am

Re: micro sd card

Postby Brian Griffin » Sun Feb 27, 2011 12:24 pm

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
User avatar
Brian Griffin
Enthusiast
 
Posts: 403
Joined: Mon Jan 17, 2011 9:36 am

Re: micro sd card

Postby ABSF » Sun Feb 27, 2011 10:55 pm

Brian has provided you with very good clues to proceed with your project. First you have the right compiler as it has the required libraries to support SD memories, plus LCD. But I dont know if 16F PIC have enough resources/memories to handle FAT16 file system. May be it's time for you to upgrade to a more powerful PIC like 18F or 24F family.

Allen
The next war will determine NOT who is right BUT what is left.
User avatar
ABSF
Professional
 
Posts: 810
Joined: Wed Nov 10, 2010 9:32 am
Location: E Malaysia

Re: micro sd card

Postby fiqnowf » Tue Mar 01, 2011 12:55 am

Brian Griffin WROTE:
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.


tq mr. Brian
fiqnowf
Greenhorn
 
Posts: 3
Joined: Sun Feb 27, 2011 3:48 am

Re: micro sd card

Postby fiqnowf » Tue Mar 01, 2011 12:56 am

ABSF WROTE:Brian has provided you with very good clues to proceed with your project. First you have the right compiler as it has the required libraries to support SD memories, plus LCD. But I dont know if 16F PIC have enough resources/memories to handle FAT16 file system. May be it's time for you to upgrade to a more powerful PIC like 18F or 24F family.

Allen


tq mr. Allen
fiqnowf
Greenhorn
 
Posts: 3
Joined: Sun Feb 27, 2011 3:48 am


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 2 guests

cron