The MP3car.com Store The MP3car.com Blog    

Sponsored links

Go Back   MP3Car.com > Mp3Car Technical > Hardware Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-17-2006, 05:46 PM   #571
Ale
Newbie
 
Join Date: Feb 2006
Location: Italy
Posts: 42
Quote: Originally Posted by lond
I can get a PIC16F628 at my local electronic store.

Can you plz compile the code fore me?

//Marcus Löfstrand

Hmm, this require some check of config register, internal clock, baudrate etc.
If you really need the hex code I can build it within some days but i cannot test it, i haven't in plan to buy the pic16f628.
Ale is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Old 07-17-2006, 07:45 PM   #572
Newbie
 
Join Date: Jul 2006
Posts: 5
Hi
I found the right PIC at digikey.com, butt they don't deliver to Sweden
Do you know where I can by the PIC with in EU?

//Marcus Löfstrand
lond is offline   Reply With Quote
Old 07-17-2006, 11:25 PM   #573
Newbie
 
Join Date: May 2006
Posts: 4
Quote: Originally Posted by Ale
Check the configuration word in the winpic should be 0x30e4.
if you use the internal oscillator check if the bit time is 104uS.
adjust value of register osctune (in the main routine) to obtain the correct time.


I checked winpic and config word at address 2007: 30E4
i tested with my scope and i can see a 102-106 uS signal (i need a new scope, i can't see the exact timing with my old phillips scope )it hasto be 104us exactly?

i used your code with internal oscillator, do i have to adjust value of register?

if you select to use internal osc,you dont have external osc parts, then why do you have to adjust the osctune? do i have to adjust the osctune with each pic processor that i want to use?
and why i cant see communications with hyperterminal? i tested to connect the pic emu to the pc and i cant see any data, i tested at 9600 8-E-1 but with the scope i can see the data
nation is offline   Reply With Quote
Old 07-18-2006, 09:49 AM   #574
Newbie
 
Join Date: Jul 2006
Posts: 5
Have placed a order of some samples from microchip, I hope they arrive son

//Marcus Löfstrand
lond is offline   Reply With Quote
Old 07-18-2006, 02:05 PM   #575
Ale
Newbie
 
Join Date: Feb 2006
Location: Italy
Posts: 42
Quote: Originally Posted by nation
I checked winpic and config word at address 2007: 30E4
i tested with my scope and i can see a 102-106 uS signal (i need a new scope, i can't see the exact timing with my old phillips scope )it hasto be 104us exactly?

The tolerance admitted usually is +-1% (103-105uS). the tolerance of internal osc given in datasheet is also +-1% but at 25°C and 5.0V.

Quote:
i used your code with internal oscillator, do i have to adjust value of register?

if you select to use internal osc,you dont have external osc parts, then why do you have to adjust the osctune? do i have to adjust the osctune with each pic processor that i want to use?

If the pic is at its limit tolerance should be adjusted.

Quote:
and why i cant see communications with hyperterminal? i tested to connect the pic emu to the pc and i cant see any data, i tested at 9600 8-E-1 but with the scope i can see the data

If you get the signal from the collector of the transistor that go to HU-RX(14) check if the out level is 0-12V. If is ok perhaps your PC need a compliant rs232 so i suggest you for testing purpose to use a free max232 tx inverter that get the signal from pin 6 of pic and send its out to rs232 pin 3.

If you are pratice with excel VBA i can give you my program to test the PIC. It need the mscomm32.ocx that you can get by installing a simple program see the site XL_RS232
Ale is offline   Reply With Quote
Old 07-18-2006, 02:49 PM   #576
Ale
Newbie
 
Join Date: Feb 2006
Location: Italy
Posts: 42
Quote: Originally Posted by nation
do i have to adjust the osctune with each pic processor that i want to use?

I think a litlle about this problem and It should be that my PIC is out of tolerance, so it is better to start with osctune = 0;

then there is way to test the frequency without the oscilloscope:

the routine the send the "play" frame every second should work exactly every ONE second so if you count 60 frame should take 1 min.

There is a small correction to do to adjust this time that in release 1.7 is wrong, i use the value 117 for next timer0 period but it should be 125.
As in the following code:

Code:
char getChar2(unsigned millisec) { char ch; char next = 0; tmr0 = 2; // deduct 2*8 fixed instruction cycles delay do { next += 117; change to 125; while (iwr==ird && tmr0 != next) // 125 * 8 = 1000 (= 1 ms) ; } while (iwr==ird && --millisec != 0);

Ale is offline   Reply With Quote
Old 07-23-2006, 09:36 AM   #577
Newbie
 
Join Date: May 2006
Posts: 6
Renault iPod solution

After a long search, I have found a solution, thanks to Dee Keenan of Armour Automotive Ltd.

It is now possible to connect your Renault Update List radio to your iPod without losing the CD changer. Autoleads are about to bring out a lead which plugs into the AUX input and connects to the bottom of your iPod so that it recharges it as well (although you actually need two parts, as the AUX lead only has a phono on the end, which you then need to connect to the iPod lead). The leads should be available through any Autoleads (part of Armour Automotive Ltd) dealer from the end of July (although you should be able to preorder them now). Their dealers are listed on their site at http://www.autoleads.co.uk

The parts will be PC7-REN-J for 3.5mm jack, and PC7-REN-P for phono connection. You also need the PC7-POD-200 and PC7-POD-L along with the Renault aux, and this would charge the IPOD and take audio all from the base of the unit, rather than from the jack port, which would refine the audio quite a bit. (I’m not sure which of these is the right part but the Autoleads dealer should be able to tell you).

I have just pre-ordered my leads.

Peter
busheyguy is offline   Reply With Quote
Old 08-01-2006, 04:08 AM   #578
Newbie
 
Join Date: Dec 2005
Posts: 23
I have made a VDO CDC simulator with a atmage8L, using c program.It can reserve the original cdc

Last edited by yaohui; 08-01-2006 at 04:12 AM.
yaohui is offline   Reply With Quote
Old 08-01-2006, 07:40 AM   #579
Newbie
 
Join Date: Jun 2006
Posts: 14
Quote: Originally Posted by yaohui
I have made a VDO CDC simulator with a atmage8L, using c program.It can reserve the original cdc

Wonderful!
Could you post some other details, pics and schematics, please?
s4uzer is offline   Reply With Quote
Old 08-01-2006, 08:42 PM   #580
Newbie
 
Join Date: Dec 2005
Posts: 23
Just use two transistor as inverter connect with the TX\RX from HU, then you could receive the correct data from the HU.
yaohui is offline   Reply With Quote
Old 08-11-2006, 03:02 AM   #581
Newbie
 
Join Date: Aug 2006
Posts: 38
Hi all,

I'v seen this forum 4 month ago, and I was very happy because I also want to connect Ipod to my head unit.

I tried the code, and it worked But since Ipod doesen't have SPDIF out I have decidec to make my own converter . After a few weeks of design and tips form CS the converter is ready ( At least the schematics ). It should work without a problem according to the chip's manufachter.

I didn't have the time and the possibility to try it, but I will do it in the next weeks.

It is designed to have a PIC and a max232 in the same circuit to make it complete. The Pic is 16F88 and it has been tested to work. ( Still displays CD 0 TR1 .

If anybody is interested then I will post the schematics and the hex also.

Regards

András
Foldesa is offline   Reply With Quote
Old 08-11-2006, 04:53 AM   #582
Newbie
 
Join Date: Mar 2006
Posts: 23
Of course we are all interested
FroMage is offline   Reply With Quote
Old 08-11-2006, 05:52 AM   #583
Newbie
 
Join Date: Aug 2006
Posts: 38
So,

Here is the schematics.
Hope I've helped you.

Regards

András
Attached Files
File Type: zip Schematic.zip (135.5 KB, 322 views)
Foldesa is offline   Reply With Quote
Old 08-11-2006, 06:12 AM   #584
Newbie
 
Join Date: Aug 2006
Posts: 38
Sorry I forgot some additional info.

The converter uses a CS5330/CS5330 delta-sigma ad converter, and CS8406 SPDIF transmitter. The circuit generates 18 Bit, 48 khz Stereo signal.

Of course you can easily modificate it to 24 bit 196 khz, but then you have to replace th cs5330 to cs5340 ( I think ). And also you have to add another preamplifier, and modificate the connection of cs8406 ( take care about the data flow, etc. ). Also you have to replace the transformer because it is only valid up to ~60 khz ( for example PE-65612 ).

Both cs ics are from Cirrus Logic. The TLC272 is a pre-amplifier. And a reset ic is required. The current one is from Dallas/Maxim.

Before anybody trie it please read the datasheets carefully because the circuit is very sensitive to grounding shields, and the type of capacitors.

If you can try it before me please let me know.

Regards

András
Foldesa is offline   Reply With Quote
Old 08-11-2006, 06:24 AM   #585
Newbie
 
Join Date: Mar 2006
Posts: 23
This looks great, thanks for the info!
I'll have to look at this with a friend that understands electronics better than me, and I'll tell you for sure how this works out. Did you program the PIC yourself or you used the PIC code that was on this forum ?
Why did you go for 18bit/48kHz and not 16bit/44.1kHz ? (just curious)
Do you have to program the SPDIF chips or you just plug them ?
FroMage is offline   Reply With Quote
Sponsored links
Advertisement
 
Advertisement
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


All times are GMT -5. The time now is 05:10 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
Copyright © 1999 - 2008 Mp3Car.com Inc.Ad Management by RedTyger
Message Board Statistics