|
|
View previous topic :: View next topic |
Author |
Message |
Michelle Guest
|
16F877 Jumpers? |
Posted: Wed Oct 15, 2003 1:28 pm |
|
|
Hi. I'm new at all of this, and this is probably a very easy question. But, I am trying to run the ex_ccpmp.c program with the 16F877. I'm confused how to go about finding what jumpers to use. They have 7 to 12 and 8 to 11 on the program, but I'm assumming they're different for each chip. I tried hooking up the pulse generator to Pins 2 and 3, then realized I'm supposed to have them on 16 and 17? This still did not work. I did not have any jumpers on and the lcd was generating random numbers (at least i'm not sure where they were coming from.) Any suggestions would be greatly appreciated. |
|
|
Darren Rook
Joined: 06 Sep 2003 Posts: 287 Location: Milwaukee, WI
|
Re: 16F877 Jumpers? |
Posted: Wed Oct 15, 2003 3:59 pm |
|
|
Michelle wrote: | Hi. I'm new at all of this, and this is probably a very easy question. But, I am trying to run the ex_ccpmp.c program with the 16F877. I'm confused how to go about finding what jumpers to use. They have 7 to 12 and 8 to 11 on the program, but I'm assumming they're different for each chip. I tried hooking up the pulse generator to Pins 2 and 3, then realized I'm supposed to have them on 16 and 17? This still did not work. I did not have any jumpers on and the lcd was generating random numbers (at least i'm not sure where they were coming from.) Any suggestions would be greatly appreciated. |
These jumpers are on the breadboard of the Software Prototyping board sold by CCS. If you do not have the SPB then you need to track down the schematic to see which jumper connects to what pin on the PIC.
Jumper 7 is C6
Jumper 8 is C7
Jumper 12 is a TTL input to the RS232 converter
Jumper 11 is a TTL output of the RS232 converter |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Oct 15, 2003 4:02 pm |
|
|
What demo board or prototype board are you using ?
What company makes it and what is the model number ?
Do you have this CCS board ? http://www.ccsinfo.com/spb.shtml
Yes, you need to use pins 16 and 17 on the 40-pin DIP package
of the 16F877. You also need a ground connection between the
pulse generator and the demo board.
What equipment are you using for a Pulse Generator ?
What manufacturer and model number ?
The EX_CCPMP.C program does not send its output to the LCD.
It sends it to the RS-232 serial port, and it is intended to be
displayed on a terminal window running on your PC.
(Though, the program could be modified to use an LCD).
You need to run a program such as HyperTerm, which is probably
in your Programs/Accessories/Communications folder, and set it
for COM1, 9600 baud, no parity, 8 bits, 1 stop bit, and no hardware
handshaking. (Assuming that COM1 is available on your PC). |
|
|
Michelle Guest
|
|
Posted: Sat Oct 18, 2003 9:42 am |
|
|
I'm just using a regular breadboard purchased from Radio Shack. (I'm in college doing our Sr. Design Project) I'm using an Agilent 33120A 15MHz Pulse Generator, and I'm putting in a square wave at different frequencies. I'm also using the PIC-an-LCD to interface between the PIC and the LCD (Makes that part of the code really easy.) |
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Sat Oct 18, 2003 11:02 am |
|
|
The PIC-an-LCD does have an RS-232 serial interface, so you can use
it instead of HyperTerm for this project.
First question:
Do you have the PIC-an-LCD working properly with your 16F877 ?
Can you program the 16F877 so it will display "Hello World" or
some other test message on the PIC-an-LCD ?
--------------------
With regard to your Agilent waveform generator, you should set
it up to put out:
1. A square wave.
2. No modulation or sweep.
3. Set it for a low frequency initially, such as 1 KHz (1000 Hz).
4. Set for 50% duty cycle.
5. Set it for an amplitude of 5 volts.
(ie., the waveform goes from a low level of 0v to a high level of 5v).
On the output connector of the Agilent, you'll need to install a BNC
cable that has a couple of alligator clips on the other end.
(Or build a custom made cable, with a couple wires connected to
a BNC connector).
Then connect the black (Ground) wire of the cable to the Ground pin
of your 16F877, and connect the red (Signal) wire to pins 16 and 17
on your 16F877. This puts the square wave signal onto the two CCP
input pins of the 16F877.
---------------
If you have the PIC-an-LCD working, and have the Agilent setup
and properly wired to the PIC, you're pretty close to having it working. |
|
|
Michelle Guest
|
Thank You |
Posted: Sun Oct 26, 2003 2:17 pm |
|
|
Thank you, Thank you, Thank you. The compiler program worked! Thanks for all your help. |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|