Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
unsigned int ReadInt(unsigned int addr)
{
unsigned int ret=0;
ret = ReadEeprom(addr) << 8;
ret+= ReadEeprom(addr+1);
return ret;
}
unsigned char ReadEeprom(unsigned int badd )
{
EEADR = (badd & 0x0ff);
EECON1bits.CFGS = 0;
EECON1bits.EEPGD = 0;
EECON1bits.RD = 1;
return ( EEDATA ); // return with read byte
}
void txPickit(unsigned char dat2,unsigned int baudrate)
{
unsigned char ctr, dat = dat2;
unsigned char ;
PORTC &= 0b11110111; // start bit
PORTC |= 0b00000111; // leds off (pin C0 (only) still clears to 0 from previous instruction.... no idea why)
// PORTCbits.RC3 = 0;
delayBAUD(baudrate); // start bit delay
for (ctr = 0;ctr<8;ctr++) // shift out
{
if (dat & 1){PORTC |= 0b00001111; }else {PORTC &= 0b11110111;PORTC |= 0b00000111; } //
dat/=2; // shift right
delayBAUD(baud); // floops!
}
PORTC |= 0b00001111; // stop bit
delayBAUD(baudrate); delayBAUD(baudrate); // stop bit delay
delayBAUD(baudrate); delayBAUD(baudrate);
}
My big problem with hardware is forgetting to put the jack cover over the wire before soldering the wire onto the connector, like with phone plugs. Seems to happen constantly!I bet all of us at one point of time, have soldered a polarized component backwards.
Yeah, they were great books. I think I still have some e copies somewhere on my laptop. Many of the other electronics books of the time were so arcane.I started computing with a US Navy Basic Electronics book back in the 70's (great book It had cartoon characters with the diagrams.
Similar here, except another free Basic on a home made Acorn Atom.“free” copy of Turbo Basic “ on a DIY. 286 PC.
Only taught subject as a mature student, was Art, that is until some yobs burnt the college down
Yeah, me too.Regret I never found time for a foreign language.
Yep... Been there, done that!! Spent hours wondering why the program STILL doesn't do what you've changed... Ahh!! Great fun..I had opened a recent file, in a tab alongside the actual build file, and happily typed in my C stuff , congratulated myself as it built several times with no errors !
hi spec,
I see a couple of bugs
'O' versus 0
also
FOFFFFF1
FOFFFFEF
F0FFFFF0 is missing in the sequence.
E
too, IanThey all appear to be the letter 'O' spec..