This _should_ be PIC Assembly 101; I know I'm missing something obvious, but I'm still missing it.
Using a PIC32MX150, I'm trying to access the i/o pins on PORTA and PORTB. For some reason, A0, A1, B0-B3 and B12-B15 don't want to participate.
The last 4 lines are a loop to invert the ports over and over; the simulator shows the other port pins flipping.
Everything else is just me trying to shut off whatever is hogging those i/o pins.
HELP! My hairline is receding faster than nature intended! :)
li t7, 0 sw t7, CFGCON #clear CFGCON lock bit to unlock peripherals
sw zero, SPI1CON sw zero, IC1CON sw zero, IC2CON # these are my attempts to shut off sw zero, IC3CON # whatever is locking up A0, A1 sw zero, IC4CON # B0-3 and B12-15 sw zero, IC5CON sw zero, OC1CON sw zero, OC2CON sw zero, OC3CON sw zero, OC5CON sw zero, T1CON sw zero, T2CON sw zero, T3CON sw zero, I2C1CON sw zero, I2C2CON sw zero, U1MODE sw zero, U2MODE sw zero, PMCON sw zero, PMAEN sw zero, DMACON sw zero, RTCCON sw zero, AD1CON1 sw zero, CM1CON sw zero, CM2CON sw zero, CM3CON sw zero, CVRCON sw zero, CTMUCON sw zero, CNCONA sw zero, CNCONB sw zero, RPA0R sw zero, RPA1R
li t7, 6144 # bit 13, 12 set, lock peripherals sw t7, CFGCON
sw zero, TRISA # set all ports to output sw zero, TRISB li t7, 0xFFFF #load this value into the INV regs test: sw t7, PORTAINV sw t7, PORTBINV b test nop
--- news://freenews.netfront.net/ - complaints: snipped-for-privacy@netfront.net ---