; Set up the memory control registers.;addr0, pc, #SMRDATA - (. + 8)ldrr1, =BWSCON; BWSCON Address.addr2, r0, #52; End address of SMRDATA.15ldrr3, [r0], #4strr3, [r1], #4cmpr2, r0bne%B15问题1:addr0, pc,
int main(void){// disable JTAG port DDPCONbits.JTAGEN = 0;// 3.2 initialization TRISB = 0; // all PORTA as output T1CON = 0x8030; // TMR1 on, prescale 1:256 PB// 3.3 the main loop while( 1) { // 3.3.1
用户评论