• Blog
  • Parts Sources
  • Form Test
VccGnd

Nano-REPL on PIC18F25K50

2/19/2014

0 Comments

 
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.

PIC18F25K50NanoREPL_1 by VccGnd
0 Comments



Leave a Reply.

    VccGnd

    Hardware with a software twist.

    Archives

    February 2014
    January 2014
    September 2012
    August 2012
    July 2012

    Categories

    All
    7LED
    Android
    Ascii
    Crystal Free USB
    Crystal-Free USB
    Dev Boards
    MSP430
    Overviews
    PCB
    PIC8
    Sourcing

    RSS Feed

Powered by Create your own unique website with customizable templates.