參考資訊:
https://www.ti.com/lit/ug/swru191d/swru191d.pdf?ts=1610169216449&ref_url=https%253A%252F%252Fwww.google.com%252F
Direction
Alternative Function
main.s
p0sel set 0xf3 p0dir set 0xfd .org 0h jmp _start .org 100h _start: mov p0dir, #0x01 mov p0sel, #0x00 loop: setb p0.0 call delay clr p0.0 call delay jmp loop delay: mov r6, #50 d0: mov r5, #255 d1: mov r4, #255 d2: djnz r4, d2 djnz r5, d1 djnz r6, d0 ret .end
編譯、燒錄
$ mcu8051ide --compile main.s $ sudo cc-tool -v -e -w main.hex Programmer: CC Debugger Target: CC2540 Erasing flash... Completed Writing flash (34 B)... Completed (0.12 s.) Verifying flash... Completed (0.07 s.)
完成