![]() |
![]() |
![]() |
|
|
|||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
The following project (actually a neat idea a Mastermind calculator) is flawed in many ways but is a good example how NOT to design a small microcontroller.
http://www.mystrobl.de/ws/pic/mm47/index.htm ![]() Anyone care to guess what's wrong? |
|
|
|
|
|
|
(permalink) |
|
Switches straight to ground isn't a good idea. They could easily be pulled low via RA4.
Mike. |
|
|
|
|
|
|
(permalink) |
|
What i can understand from this figure is that - it is combination of lines and boxes with 8 8 8 8 written in them...
I prefer colorful figures... Regards, Simran..
__________________
Simran.. 8051 Specialist.. |
|
|
|
|
|
|
(permalink) |
|
1. Driving lots of LED displays directly off of the PIC too much current.
2. The buttons are connected to the display. I take it the intention was to also multiplex the buttons with the display by reading it periodically, but if you hold the buttons down it will connect the pins directly to ground either turning on or off the corresponding segments of the display and also possibly sinking lots of current from the output pins. Should have used the unused pin RA4 (see #6). 3. As mentioned earlier, no pull up resistors on the switches. 4. MCLR connected directly to Vcc, I usually at least use a resistor between them. 5. No load caps on the crystal, probably wouldnt even start oscillating. 6. RA4 tied directly to ground, could sink too much current if the pin is incorrectly set in software. 7. No caps on Vdd near the PIC, possible dirty power. EDIT: Strike number 5, didnt notice ceramic resonator. I've never used those personally, so I dont know if its use was correct or not. Last edited by Stellarcore; 9th January 2008 at 05:45 AM. |
|
|
|
|
|
|
(permalink) |
|
At first I thought it was RA4 to ground, but it's OK because it is an open drain IO. RB6 & RB7 are multiplexed between input and output modes so there really should be some 470
__________________
--- The days of the digital watch are numbered. --- |
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) | |
|
Quote:
Here in my area PIC 16F84As price is expensive than PIC 16F88 |
||
|
|
|
|
|
(permalink) | |
|
Quote:
16F88 are the best of the 18pin 16F series, they've got the works. The 18F84A is expensive and pretty old. Edit one more error in the schematic, the busses are not labeled. How do you know which segment goes to which I/O pin? |
||
|
|
|
|
|
(permalink) | |
|
Quote:
Regards, Simran..
__________________
Simran.. 8051 Specialist.. |
||
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) |
|
Both the 16F84 and 84A are relics. Use the 16F628A instead, cheaper too.
And yes it would need the pullups normally to read those switches. |
|
|
|
|
|
|
(permalink) | |||
|
Quote:
Quote:
I guess he's not a hardware guy since the switches are a very bad implementation. He even recognised the problem and kludged the software. I quote from the original web site (http://www.mystrobl.de/ws/pic/mm47/index.htm) Quote:
Last edited by geko; 9th January 2008 at 09:22 AM. |
||||
|
|
|
|
|
(permalink) |
|
The tyeing of MCLR to Vdd was recommended for the 16F84/A. It is only on later chips this is inadvisable.
Mike. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
|
||
|
|
|
|
|
(permalink) | |
|
I don't think the 628 was released until 99. I have the 1996 Microchip Microcontroller databook and even the 16F84 isn't mentioned, just the 16c84. I still have my UV eraser that I used to erase them.
Quote:
Mike. |
||
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| MP Lab Program Help | bamafan54 | Micro Controllers | 3 | 19th October 2007 02:53 AM |
| help understanding this hbridge design.... | jaydag71 | Electronic Projects Design/Ideas/Reviews | 2 | 5th June 2007 10:37 PM |
| Texas Instruments New Design Center. | chemelec | General Electronics Chat | 0 | 18th May 2006 10:33 PM |
| Analog design: Some things to remember | Roff | General Electronics Chat | 18 | 8th November 2005 01:38 PM |
| anybody knows how to design a calculator??? | eleanor | Electronic Projects Design/Ideas/Reviews | 4 | 12th August 2005 05:44 PM |