BS2 Functions

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Request group membership
By: Martin Hebel, created: 2007-03-11 | updated: 2013-05-02

General PBASIC functionality library, written in Spin, that mimics and extends many popular BS2 functions: COUNT, DEBUG, DEBUGIN, FREQOUT, PAUSE, PULSOUT, PULSIN, PWM, RCTIME, SEROUT, SERIN, SHIFTOUT, SHIFTIN.

 
Version 1.5.0 adds methods for HIGH/LOW/IN, and continuous methods for FREQOUT, PWM and COUNT. It also add EEPROM access for code and high memory access using READ and WRITE methods.
 
Don't forget to start -Needed for timing: BS2.Start(31,30)
 
Original File Upload
AttachmentSize
BS2_Functions.spin105.7 KB

Comments

[originally posted by Christopher Dowland on 2011-03-06 14:19:20] Thanks about to get my prop in the mail cant wait to dive in thanks for taking the time and doing this.

 
[originally posted by Martin Hebel on 2011-08-11 13:54:05] You are welcome!
 
[originally posted by Anonymous on 2011-05-23 09:36:04] SEROUT_CHAR(Pin, char, Baud, Mode, Bits ) and SERIN_CHAR(pin, Baud, Mode, Bits) does not work with baud greater than 9600 because of negative number in pause_us(....)
 
[originally posted by Martin Hebel on 2011-08-11 13:53:46] Yes, the comments at the start of the code note that Serial methods should be limited to 9600. -Martin