Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 1st October 2007, 05:38 AM   (permalink)
Default

This is why you use an external ADC. You then don't have to worry about high frequency noise quiet as much as the ADC unit isn't on the same die as the digital portions. If this is for basic audio try closer to 8khz. Only hi-fi music needs the higher sampling rates.
__________________
"Because I be what I be. I would tell you what you want to know if I
could, mum, but I be a cat, and no cat anywhere ever gave anyone a
straight answer, har har."
Sceadwian is offline  
Old 1st October 2007, 08:04 AM   (permalink)
Default

That's not for hi-fi music, just simply the audio output from the MP3 player.
Even I can lower the sampling rate, but I think the speed of the PIC need to be fast enough to perform faster serial transmission.
__________________
Superman returns..
bananasiong is offline  
Old 1st October 2007, 09:12 AM   (permalink)
Default

Quote:
Originally Posted by bananasiong
That's not for hi-fi music, just simply the audio output from the MP3 player.
Even I can lower the sampling rate, but I think the speed of the PIC need to be fast enough to perform faster serial transmission.
What speed serial transmission are you planning?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 1st October 2007, 05:13 PM   (permalink)
Default

I have not decided yet. I'm hoping to send out the serial data before the second data being sampled so that I have enough time to do something else. Maybe UART will be used for the transmission, I'm still doing research on that.
__________________
Superman returns..
bananasiong is offline  
Old 1st October 2007, 11:30 PM   (permalink)
Default

Quote:
Originally Posted by bananasiong
I have not decided yet. I'm hoping to send out the serial data before the second data being sampled so that I have enough time to do something else. Maybe UART will be used for the transmission, I'm still doing research on that.
You need to work it out first - and seriously need a hardware UART, as your timing requirements are so tight.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 28th October 2007, 12:46 PM   (permalink)
Default

The PIC24HJ12GP202 or similar will allow you to sample 10bit AD @ 1.1 msps, it also has the ability to store direct to internal ram. But I am having trouble trying to get any .ASM support for this range.
Gordz is offline  
Old 28th October 2007, 12:58 PM   (permalink)
Default

Quote:
Originally Posted by Gordz
The PIC24HJ12GP202 or similar will allow you to sample 10bit AD @ 1.1 msps, it also has the ability to store direct to internal ram. But I am having trouble trying to get any .ASM support for this range.
Presumably, like the 18F series, support is for C programming, with a free compiler available?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 28th October 2007, 01:03 PM   (permalink)
Default

You got it right there. It's a hassle because I wanted to port my 'scope code from the 18F I'm using to the 24HJ12GP202 to take adavntage of the A/D speed. Microchip have not been able to help and I'm not about to start learning C so I now spend hours searching and trying to get a 'hello world' working.....
Gordz is offline  
Old 28th October 2007, 01:05 PM   (permalink)
Default

Quote:
Originally Posted by Gordz
You got it right there. It's a hassle because I wanted to port my 'scope code from the 18F I'm using to the 24HJ12GP202 to take adavntage of the A/D speed. Microchip have not been able to help and I'm not about to start learning C so I now spend hours searching and trying to get a 'hello world' working.....
I'm also 'anti-C' but for the 18F and higher series it's something you really need to learn, because that's what they are intended for, and application notes and examples are in C. Obviously you could use assembler for time critical sections, and presumably all the assembler codes are in the datasheet?.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Old 28th October 2007, 01:13 PM   (permalink)
Default

The code is there in as much as it is listed, however it is not very clear. There are no code template available and was I have found has been from dsPIC models. From what I have piced to gether there is no reason why my 'hello world' won't work but the PIC does not seem to be running so the clock is probably not configured. That in it's self is more than a little complicated with so many options. Even if I learned C (old dog new tricks etc.) I would still need to port all the .ASM stuff I have.
Gordz is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Speedometer Kiko Micro Controllers 131 29th November 2007 06:33 PM
help needed for ADC circuit konzen General Electronics Chat 25 9th October 2007 03:55 PM
Need some help with a code provided by ATMEL ikalogic Micro Controllers 1 23rd January 2007 03:46 PM
ADC Converter Ic with high bit rate dineshbabumm Electronic Projects Design/Ideas/Reviews 12 23rd June 2006 09:53 PM
Having problems with pic16f872 cjgalway1000 Micro Controllers 0 7th April 2004 03:39 PM



All times are GMT. The time now is 06:39 PM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker