Thanks Henrik!
I thought the syntax was to place "Code:" before doing a paste of the code? I tried to find your original syntax instructions and keep getting "invalid forum option". How do I expand the "$1FC5" and "$1FD4" to see the bit pattern?
Thanks Henrik!
I thought the syntax was to place "Code:" before doing a paste of the code? I tried to find your original syntax instructions and keep getting "invalid forum option". How do I expand the "$1FC5" and "$1FD4" to see the bit pattern?
Hi Ed,
Use a calculator capable of displaying hex, decimal, binary (such as the one included in Windows) or, if you want an exercise, use a pen and a piece of paper.
What clock frequency are you using for chip?
Please see this link for the vBulletin syntax.
/Henrik.
Hi Henrik!
Thank you again! The xtal is 14.318. (NTSC) I have to go to the dentist today for a some surgery so I will look at the hex to binary after that. My guess is I am only looking at the last two digits, just the C5 in $1FC5?
No, the registers are 16 bits wide, bits are labeled 0-15 (as usual) and you're interested in bit 8 (ie the 9th bit) which would then be the least significant bit in the high byte of the 16-bit Word. But really, look at it at as one 16bit value, convert the hex value you have to binary and compart at against the datasheet.
In fact, do that for "everything" and you might find something else that isn't right for your application - and you'll learn a lot.
/Henrik.
Code: is inserted by the system.
[ Code ] at start.
[ / Code ] at end.
without spaces
My Creality Ender 3 S1 Plus is a giant paperweight that can't even be used as a boat anchor, cause I'd be fined for polluting our waterways with electronic devices.
Not as dumb as yesterday, but stupider than tomorrow!
Thank you! I forgot the brackets! Boy do I feel dumb! Back to the code, so I did a hex to binary and binary to hex and came up with $1FC5 should be $1085 and $1FD4 should be $1284. It did not make a change so it must be something else or I did not convert correctly?
No, that doesn't look correct to me.
$1FC5 = 0001 1111 1100 0101
$1085 = 0001 0000 1000 0101
That's a lot more changes than one bit.
/Henrik.
Bookmarks