Thanks Dave.
Type: Posts; User: markcadcam; Keyword(s):
Thanks Dave.
Attached is my code.
'****************************************************************
'* Name: HNC Turret Controller.BAS *
'* Started: 11/29/08 ...
I am using an 18F452 micro, running at 20 MHz’s. I have four 22k resistors, one each connected in series with pins RA0 thru RA3 with a 5 volt Zener diode clamping the voltage at each of the pins to 5...
Thanks Alain, I'll try it out tonight.
Mark
When running the code below I do NOT get 5 volts out of PORTC.1. I can change the code to use any other pin on PORTC and I DO get 5 volts out. The problem is with just PORTC.1
Mark
Input...
Hi Alain,
I've tried TRISC = %00000000 setting all to ouputs before. I get the same result.
Mark
Hi All,
I need to use PORTC.1 as a digital I/O pin on a 18F452 pic. I have looked at the documentation for this microprocessor but I could not find how to configure this pin as just a digital...
Bruce,
That was the problem, I was using an older version. Works fine now with the new version.
Thanks,
Mark
Hi Bruce,
That appears not to be the problem. I have checked my .inc file and that line looks like this - LIST p = 18F452, r = dec, w = -311, w = -230, f = inhx32
Mark
When I compile my project I'm getting the 'WARNING[221] c:\pbp\18f452.inc 18 : Invalid message number (231)'
Does anyone know what this message is about? Is it anything I should be...
I think I got it now. Thanks for the help.
Mark
Where is the x100 coming from?
Divide by 5252, not multiply it.
RPM = 12000
STRAIN = 210
TORQUE = 140
VALUE = 5252
A = STRAIN * TORQUE
B = RPM
C= A * B
RPM Max = 12,000
STRAIN Max = 210
TORQUE Max = 143
I have version 2.44 of PicBasic Pro. Will 'LONG' work with this version? Should I upgrade?
Mark
Thanks Brian.
Mark
When I use the example below I get a results of 1019 instead of 15993.
Ok, RPMs are 8000 and torque is 300...
8000 x 35 x 300 / 5252 = 15993
Divide by 10000, display that number, put a decimal...
Thanks! I think that will work.
Mark
Hi all,
I’m using an 18F452 Pic for a Dynamometer project. I have an amplifier feeding the a/d input on the Pic 0-5 volts. A count of 70 equals a foot-pound of torque. The problem I’m having is...
I believe I found the problem. This circuit was designed for a 4Mz crystal and I am running it at 20Mz. I added a 'PAUSE 1" after the line 'TRISB = (DCD Row) ^ ff' to slow it down and this seems to...
I'll give it a try.
Thanks,
Mark
Hi Peterdeco1,
I appreciate the feedback but unfortunately I have made a circuit board for this design which is already installed in a piece of equipment. If I cannot get this to work I’ll give...
I am using the code listed below. It is wired per this website http://rentron.com/serkey16.htm. The output from the keypad is inconsistent. Sometimes the output is correct and sometimes the output...
Thanks Paul,
I guess I didn't understand how to read it. I think I do now.
Mark
Hello All,
I want to enable the weak pull-up resistors on PORTB for an 18F452 micro. After reading over the data sheet, it looks like to turn the weak pull-ups off you use INTCON.2 = 7. I cannot...
I'll check it out. Thanks!
Mark