Help with programming the sampling rate for ADC

Beta Testing discussion on mikroBasic PRO for PIC.
Post Reply
Author
Message
Ken_Kang
Posts: 1
Joined: 22 Aug 2010 07:16

Help with programming the sampling rate for ADC

#1 Post by Ken_Kang » 10 Sep 2010 16:16

Hello everyone,

I am new to mikroBasic Pro. I need to sampling a signal at 256 samplese per sec from 4 ADC channels simultaneously. I am using the EASYPIC6 development board, PIC18F2550 with 8MHz. I am also using the USB module in the 18F2550.I appreciate if anyone can help to provide example code on how to program the sampling rate using mikroBasic Pro.

Best regards,
Ken Kang
Singapore

User avatar
ranko.rankovic
Posts: 433
Joined: 11 Jun 2010 09:22

Re: Help with programming the sampling rate for ADC

#2 Post by ranko.rankovic » 22 Sep 2010 12:43

Hello Ken_Kang,

Only one channel is active at one time in A/D conversion. Please refer to datasheet for your MCU for more details about A/D Conversion.
There are ready to use examples within our compiler, you can have a good head start with those. Consider them for starting step, you can use them and suit them for your needs.

Best regards
Ranko Rankovic
mikroElektronika [Support Department]

Post Reply

Return to “mikroBasic PRO for PIC Beta Testing”