DIY Chatroom Home Improvement Forum

DIY Chatroom Home Improvement Forum (
-   Electrical (
-   -   USB and PIC16C745 (

eleavr 04-29-2008 03:39 AM

USB and PIC16C745
The analog signal from the microphone was amplified using an op-amp and then digitized using the 16C745's analog-to-digital feature. If you are reproducing this project, I would recommend putting in a filter to remove the frequencies higher than the microprocessor's sampling rate. The digital data was buffered in the microprocessor and then set to the host computer over the USB connection. Since 'interrupt' method of transfer only allows 8 bytes of data transfered every 10ms, this limited the amount of data that could be transfered.
The following circuit connects the PIC to the usb cable. It is designed to be powered off the USB cable. The 6 MHz clock controls the internal oscillator.

The 'reset' switch, causes a reset condition which should cause most of the special registers to clear and the program to start again.
The value of R1 is not critical since it is only used as a pull-up for the MCLR (master clear) pin. The R2 resister is required by the USB specification and should be 1.5 kOhms. The capacitor C3, is not critical and simply stabilizes the Vusb pin voltage. The values of the capacitors, C1 and C2 can be in a range specified in the 16C745 specification (15pf - 69 pf) and may depend on the crystal that you use.

Check that USB power and ground connections are correct before connecting the chip. It is easy to get turn around between the cable pinout and the socket pin out.

Speedy Petey 04-29-2008 06:16 AM

Me thinks this was posted in the wrong forum. :laughing:

Termite 04-29-2008 07:52 AM


Originally Posted by Speedy Petey (Post 119822)
Me thinks this was posted in the wrong forum. :laughing:

Isn't that on the masters test??? :wink:

All times are GMT -5. The time now is 03:56 PM.

vBulletin Security provided by vBSecurity v2.2.2 (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.

Search Engine Friendly URLs by vBSEO 3.6.1