Forums | Home Repair | Home Improvement | Painting | Interior Decorating | Remodeling | Landscaping


Go Back   DIY Chatroom Home Improvement Forum > Home Improvement > Electrical

CLICK HERE AND JOIN OUR COMMUNITY TODAY...IT'S FREE!

Reply
 
Thread Tools Search this Thread Display Modes
Old 04-29-2008, 03:39 AM   #1
Newbie
 
Join Date: Apr 2008
Posts: 1
Share |
Default

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.
eleavr is offline   Reply With Quote
Old 04-29-2008, 06:16 AM   #2
Licensed Electrical Cont.
 
Speedy Petey's Avatar
 
Join Date: Feb 2004
Location: NY State
Posts: 6,676
Default

USB and PIC16C745


Me thinks this was posted in the wrong forum.
__________________
Sometimes I feel like if I answer any more questions it is like someone trying to climb over a fence to jump off a bridge and me giving them a boost.
Answers based on the 2008 & 2011 NEC. If you're on the '14 already I feel sorry for you.
Speedy Petey is offline   Reply With Quote
Old 04-29-2008, 07:52 AM   #3
Registered User
 
Termite's Avatar
 
Join Date: Apr 2008
Posts: 6,520
Default

USB and PIC16C745


Quote:
Originally Posted by Speedy Petey View Post
Me thinks this was posted in the wrong forum.
Isn't that on the masters test???
Termite is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are Off
Refbacks are Off





Top of Page | View New Posts

Copyright © 2003-2014 Escalate Media. All Rights Reserved.