Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 3rd December 2007, 01:55 PM   (permalink)
Default change program from 16f84a to 16f818

Hi

Since my last posts I have had some great help from a member here to get my project off the ground, we decided pots would be best for speed and stroke so had to upgrade to the 16f818 chip

The problem now is just running a basic set of commands

Code:
loop:
StepCCW 150, 1000
WaitUs 1000

StepCW 150, 1000
WaitUs 1000

Goto loop
The above works 100% with the 84a BUT when using it in the 818 it stutters, searches, just generally behaves very erratic.

The 84a has a 4meg OSC the 818 needs to be set so we added this to the top of the file

Code:
OSCCON = 0x60
It is still verry erratic, am I missing something?

I am using the Oshonsoft Bacis compiler and ICProg

ICProg settings are intRC, CP Off, WRT Off, FUSES: PWRT & MCLR are ticked and the rest are unticked.

Any help would be greatfully appreciated, thanks
Totally blank is offline  
Old 3rd December 2007, 02:46 PM   (permalink)
Default

Have you setup ADCON1 so you have the correct pins as analogue or digital?

Mike.
Pommie is online now  
Old 3rd December 2007, 02:49 PM   (permalink)
Default

hi,
Did you get my email regarding what is connected to PIC pins 15/16 on the 16F84A socket??
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 3rd December 2007, 02:53 PM   (permalink)
Default

Hi Mike / Eric

Mike ADCON1 = 0x05

Eric, yes and I sent you a reply with an image attached,let me know if you get it.
Totally blank is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
Question about Inchworm+ Quan Micro Controllers 54 28th October 2007 01:21 AM
First Program in assembly, And Programmer Inchworm. Ayne Micro Controllers 10 9th March 2007 08:27 PM
16F84A programming error using P16PRO40 rizzy Micro Controllers 21 11th December 2004 07:17 AM
schematic & program to program pic 16f84a plz mafiaaa Micro Controllers 2 27th November 2004 05:00 PM
PicBasic Keypad program Sora Micro Controllers 0 20th April 2004 08:02 PM



All times are GMT. The time now is 01:40 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker