Example circuits

For E-blocks user to discuss using E-blocks and programming for them.

Moderators: Benj, Mods

Post Reply
Peter
Flowcode V4 User
Posts: 14
Joined: Thu Mar 08, 2007 3:30 pm

Example circuits

Post by Peter »

I've programmed a 16f88 ready for my first project and it's working fine on the multiprogrammer board. Now I need to transfer it to a real circuit, but I could do with some examples of circuits so that I know what else has to go onto the PCB with the PIC. At this stage I need something really simple - e.g. timing is not critical so maybe I could manage without a crystal.

Could anyone direct me to some simple circuits that I could learn from?

Many thanks
Peter

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Post by Steve »

Microchip have many application notes that may help.

Also, the circuits for our E-Blocks boards are available in the datasheets here:
http://www.matrixmultimedia.com/eblocks/index.php

Peter
Flowcode V4 User
Posts: 14
Joined: Thu Mar 08, 2007 3:30 pm

Post by Peter »

Thanks Steve. Those are two of the sources I checked out before posting my request - sorry, I should have said that I had been doing some looking around first.

The E-blocks ciruit diagram are invaluable for designing the peripheral electronics but they don't show the actual microprocessor (no reason why they should - it will normally be on a different board). As far as I can see, the Microchip examples don't cover the 16f88. I guess I could adapt the 16f877 examples but they all seem quite advanced, whereas I'm looking for something really simple.

I have desined a simple controller to do a small job in the house: a relay in another bit of equipment flicks on and off and this will send a signal to the PIC to do various combinations of switching a motor and indicator lamp. Conditioning the relay signal and controlling the motor and lamps is dead easy but sorting out what timing and other circuitry I need around the PIC is proving a tad difficult for an absolute beginner to pin down.

For example, if I choose not to use a crystal do I need an external RC circuit and where should it go? Are there some pins on the chip that must be grounded? do I need a reset switch? and so on.

So if you or anyone else knows of a good internet source of this sort of advice, or a good book, even, I would be very grateful to hear of it.
Peter

User avatar
Steve
Matrix Staff
Posts: 3433
Joined: Tue Jan 03, 2006 3:59 pm
Has thanked: 114 times
Been thanked: 422 times

Post by Steve »

Our EB006 datasheet should include the microcontroller's power, reset and oscillator circuitry.

Also, Microchip's datasheet for the 16F88 contains some example oscillator circuits.

For the basics, you need to make the following connections:

Code: Select all

  * Vdd  = +V (probably 5V)
  * Vss  = GND
  * MCLR = +V via a 10k resistor (+ optional 'reset' switch to GND)
The '88 has an internal oscillator, so you do not need an external RC circuit - especially is your program timing is not critical.

Hope this helps.

Peter
Flowcode V4 User
Posts: 14
Joined: Thu Mar 08, 2007 3:30 pm

Post by Peter »

It helps a lot - just what I needed to know. Thanks, Steve, you're a star!
Peter

Post Reply