|
 |
|
01-28-2005, 07:46 PM
|
#16
|
|
Constant Bitrate
Join Date: Apr 2004
Posts: 176
|
Do you guys already have code started for the 18f ? If not, I might be able to help.
From what I've read, the underlying bus is i2c correct?
Kind regards,
CB
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
01-28-2005, 07:47 PM
|
#17
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
|
Quote: Originally Posted by cbergeron
Do you guys already have code started for the 18f ? If not, I might be able to help.
From what I've read, the underlying bus is i2c correct?
Kind regards,
CB
PM Sent (again).
|
|
|
01-28-2005, 07:53 PM
|
#18
|
|
Variable Bitrate
Join Date: Oct 2003
Location: Chicago, IL
Posts: 284
|
I am not really familiar with the 18 family of chips, but what prevents you from using something like a 16F876. It has built in UART also, slap a max232 on it and its uber easy to get serial going. cant you use one of those FTDI rs232 to usb chips for usb? i also got I2C code working on the same chip, via the UART, IIRC (its been awhile...)
Edit: oh yeah, i have an extra 18F chip, i think. I got it in a pack of samples, but im pretty sure my programmer cannot do 18F chips. Let me know if one of you guys want it.
|
|
|
01-28-2005, 08:59 PM
|
#19
|
|
Raw Wave
Join Date: May 2003
Posts: 1,736
|
Use the I2C-RS232 code example from here.
http://www.emicros.com/pic1.htm
From the RS232 use the code to convert it to USB as found on the microchip 18F/16F series USB PIC app notes. With code alteration to suit the targeted MCU of course.
The PIC will then appear as an emulated comport via USB. or just write a straight I2C-USB code. All best done in assembly, C or BASIC are ghey in PIC
Go for the 16F because they are much cheaper.
Edit 16C I meant
Last edited by Chris31; 01-29-2005 at 09:11 AM.
|
|
|
01-28-2005, 09:14 PM
|
#20
|
|
Raw Wave
Join Date: May 2003
Posts: 1,736
|
I simply cant see the point in having a serial support when the USB is already there. Unless the cost of MAX232, 5 caps, 1 DB9 connector and space needed for those components are considered ok. Which I dont think so.
Just slap in a 16C745 USB PIC and a software emulating the I2C on 2 of the pins. A much much cheaper solution.
Here
1 x PIC 16C745
1 x XTAL
3 x capacitor
2 x resistor
1 x USB port
|
|
|
01-28-2005, 09:38 PM
|
#21
|
|
Variable Bitrate
Join Date: Oct 2003
Location: Chicago, IL
Posts: 284
|
yea bit bang the I2C
|
|
|
01-29-2005, 01:07 AM
|
#22
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
|
Quote: Originally Posted by Chris31
Go for the 16F because they are much cheaper.
True but there aren't any 16F parts with USB hardware, only OTP. So we could have saved a few bucks on a cheaper 16F but then add it right back for the FTDI and supporting chips, larger layout, etc. The 18F looked to be a cleaner and ultimately cheaper solution. It's a fairly powerful beast and since it's flashable, it leaves open the possibilitiy of extending the radio to possibly do other things of interest to the community (relay control, temperature sensing, dead reckoning, ...).
|
|
|
01-29-2005, 01:09 AM
|
#23
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
|
Quote: Originally Posted by Dexter
yea bit bang the I2C
Right, and if you're going to bit bang, you might as well just ditch the PIC all together. You can bit bang directly from the PC serial (+ level converter) or parallel port.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
01-29-2005, 04:56 AM
|
#24
|
|
Variable Bitrate
Join Date: Oct 2003
Location: Chicago, IL
Posts: 284
|
Sorry 
Gotcha now. I thought the cost of the 18 family was really high compared to a 16 and some extra components but i havent really checked it out lately. sorry again. If you want my 18 chip you can have it, i have no use for it.
|
|
|
01-29-2005, 12:42 PM
|
#25
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
|
Quote: Originally Posted by Dexter
Sorry 
Gotcha now. I thought the cost of the 18 family was really high compared to a 16 and some extra components but i havent really checked it out lately. sorry again. If you want my 18 chip you can have it, i have no use for it.
The 18F2455 is listed at ~$9/ea at Digikey for single unit quantities but drops to $5/ea for purchsees of 25. That's why we're thinking about doing kits to keep the cost down.
|
|
|
01-29-2005, 12:48 PM
|
#26
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
|
Quote: Originally Posted by Dexter
Sorry 
Gotcha now. I thought the cost of the 18 family was really high compared to a 16 and some extra components but i havent really checked it out lately. sorry again. If you want my 18 chip you can have it, i have no use for it.
No apologies needed ... we're open to discussing ideas.
The 18F2455 is listed at ~$9/ea at Digikey for single unit quantities but drop quickly to $5/ea for purchsees of 25. That's why we're thinking about doing kits to keep the cost down.
Hold on to the 18F. You might be able to use it to assemble one of these boards.
|
|
|
01-29-2005, 06:05 PM
|
#27
|
|
Low Bitrate
Join Date: Aug 2004
Posts: 98
|
Update
Hi,
I'm back from a week of snowboarding and ready to kick ... again.
First of all some info about the features of the prototype:
AM/FM car tuner module
RDS/RBDS
USB controlled
Serial output (without MAX232), example for use with small LCD with RDS info
I²C output, to connect other I²C devices and control them through USB.
Phone input (with activation input to switch the sound processor)
AUX input
4 channel output (LF-RF, LR-RR)
Antenna/amplifier output
The unit uses a car tuner module, RDS-and sound processor. All this is controlled by I²C and through the PIC by USB.
I had some trouble with the prototype PCB (holes with incorrect size etc) so I adapted the PCB layout and decided to have 2 prototype PCB's made by a company nearby (had no time myself due to holiday). They're ready on friday (02/04) and will be assembled in the weekend. When they are working one will be send over to Seth for lab testing and one I keep here for testing.
If they fulfill the expectations I will most probably convert the layout to one with normal components for those who are not that big of a fan of SMT soldering (it's quite fun if I say it myself  ).
Rogier
__________________
Professionals built the Titanic, an amateur built the Ark.
|
|
|
01-30-2005, 03:00 PM
|
#28
|
|
FLAC
Join Date: Nov 2003
Posts: 947
|
Just wanted to have some comments on design but cannot read schematics due to the small size of it. Also interesting in something similar( but simpler ) with fully digital sound.
|
|
|
01-30-2005, 03:43 PM
|
#29
|
|
Constant Bitrate
Join Date: Feb 2004
Location: VA
Posts: 192
|
How would it be simpler with digital in? There's quite a bit more coding to get digital in.
|
|
|
01-30-2005, 04:05 PM
|
#30
|
|
Raw Wave
Join Date: Mar 2004
Location: Redondo Beach, CA
Posts: 1,969
|
@jbors: See the FAQ. Digital audio is within reach of the current solution -- You'd have to roll your own firmware to do the A/D sampling using either the on board converters on the 18F or with extra hardware. So too your firmware and OS USB drivers will need to deal with the audio stream.
|
|
|
|
Sponsored links
|
|
Advertisement
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:07 AM.
| |