CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

PIC18F4550 with spectrometer

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
ferrousduke



Joined: 31 Mar 2008
Posts: 29
Location: Mumbai, India

View user's profile Send private message Visit poster's website

PIC18F4550 with spectrometer
PostPosted: Thu May 01, 2008 9:41 am     Reply with quote

ok there's a spectrometer USB4000 from Ocean optics. datasheet is attached here. I want some serious help here.

project task and working:

1. USB4000 scans the optical light., with the capabality of scanning the whole spectrum in 3800 us, the data has to be sent to 18F4550.

2. it should send the data every ~4 ms. 18F4550 should compare the data and pwm is set accordingly.

can I have tentative idea of the interface? In datasheets of USB4000 its given that USB interface has a bulk transfer which means its for big files.

datasheet:

http://www.oceanoptics.com/technical/engineering/USB4000%20OEM%20Data%20Sheet.pdf

regards
Dharmesh
Ttelmah
Guest







PostPosted: Thu May 01, 2008 10:20 am     Reply with quote

You will have to use the RS232 interface, not the USB interface. PIC's are _slave_ USB devices, as is this unit. Slaves, cannot talk to slaves.
The fastest the RS232 will run, is 230400bps. With _care_ a PIC should be able to receive at this rate. This is still going to take 300mSec to transfer the whole spectrum (or you might use the compression mode - Page41), which should bring it down to about 200mSec.
So, 'no way' are you going to be able to scan the data every 4mSec....
To implement a USB master, you will need something like the FTDI Vinculum, or just use a PC (a 'single board' PC, can be had now for under £60, even in 'ten off' quantities, and using something like a compact Linux on this, will 'run rings' round any PIC solution...). If the quantities are going to be large, then it'll be worth spending the very significant development time to implement a master USB device. Otherwise, it'll be far cheaper, to use the embedded PC.

Best Wishes
ferrousduke



Joined: 31 Mar 2008
Posts: 29
Location: Mumbai, India

View user's profile Send private message Visit poster's website

PostPosted: Thu May 01, 2008 11:13 am     Reply with quote

ok. will use RS232 interface. mm what abt GPIO's? can use for data transfer to PIC?
ferrousduke



Joined: 31 Mar 2008
Posts: 29
Location: Mumbai, India

View user's profile Send private message Visit poster's website

PostPosted: Sat May 03, 2008 1:21 am     Reply with quote

mm Is there anyone? please help..
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group