The term REPL, for Read-eval-print loop, is quite in vogue these days. REPLs used to just be called interpreters, a term every 80's computer user was familiar with since in those days computers booted into BASIC.
Well, I made a Nano-REPL with a breadboarded PIC18F25K50. Here I have it connected to the PC via the USART and an FTDI module (not using on-chip USB yet), and interacting with putty. It does not wait for you to hit ENTER to evaluate your command. All commands are single-character tokens. '1' is taken to mean turn on the LED. '0' means turn off the LED. All other tokens are considered comments. The print part of the REPL is to echo what you type, while the result of the eval is clearly seen from the LED on the breadboard.
Okay, really, all I have here is proof that I can use the plib USART routines in bidirectional mode correctly :-) Next up will be to try out the plib routines for analog input, then eventually, crystal-free USB.
Well, I made a Nano-REPL with a breadboarded PIC18F25K50. Here I have it connected to the PC via the USART and an FTDI module (not using on-chip USB yet), and interacting with putty. It does not wait for you to hit ENTER to evaluate your command. All commands are single-character tokens. '1' is taken to mean turn on the LED. '0' means turn off the LED. All other tokens are considered comments. The print part of the REPL is to echo what you type, while the result of the eval is clearly seen from the LED on the breadboard.
Okay, really, all I have here is proof that I can use the plib USART routines in bidirectional mode correctly :-) Next up will be to try out the plib routines for analog input, then eventually, crystal-free USB.
RSS Feed