Firewing

SwordfishUser.Firewing History

Show minor edits - Show changes to output

April 05, 2014, at 09:25 AM by David Barker -
Changed line 49 from:
* [[http://www.sfcompiler.co.uk/wiki/uploads/DavidBarker/firewing/Firewing.zip | Download Firewing Module for Firewing R2]]
to:
* [[http://www.sfcompiler.co.uk/wiki/uploads/DavidBarker/firewing/Firewing.zip | Download Swordfish Module for Firewing R2]]
April 05, 2014, at 09:24 AM by David Barker -
Changed line 49 from:
* [[http://www.sfcompiler.co.uk/wiki/uploads/DavidBarker/firewing/Firewing.zip | Download Firewing Module]]
to:
* [[http://www.sfcompiler.co.uk/wiki/uploads/DavidBarker/firewing/Firewing.zip | Download Firewing Module for Firewing R2]] 
March 17, 2014, at 11:00 AM by David Barker -
Changed lines 5-6 from:
%justify%The [[http://www.firewing.info/pmwiki.php?n=Main.HomePage | Firewing board]] silkscreen has pins marked like the [[http://www.firewing.info/downloads/pdf/main-board-pins-pic18.pdf | Arduino]], with A0...A5 denoting analog or digital IO pins and D0...D13 denoting digital IO pins.  You can access these pins directly using standard syntax like PORTB.2, PORTA.0 etc ([[http://www.firewing.info/downloads/pdf/pic-pin-map-r2-pic18.pdf | This diagram shows you the mappings]]).  However, it's usually much easier to use DO, A3 etc directly, as shown on the [[http://www.firewing.info/downloads/pdf/main-board-pins-pic18.pdf | board]].
to:
%justify%The [[http://www.firewing.info/pmwiki.php?n=Main.HomePage | Firewing board]] silkscreen has pins marked like the [[http://www.firewing.info/downloads/pdf/main-board-pins-pic18.pdf | Arduino]], with A0...A5 denoting analog or digital IO pins and D0...D13 denoting digital IO pins.  You can access these pins directly using standard syntax like PORTB.2, PORTA.0 etc - [[http://www.firewing.info/downloads/pdf/pic-pin-map-r2-pic18.pdf | This diagram shows you the mappings]].  However, it's usually much easier to use DO, A3 etc directly, as shown on the [[http://www.firewing.info/downloads/pdf/main-board-pins-pic18.pdf | board]].
Changed lines 49-50 from:
* [[Firewing Moodule | http://www.sfcompiler.co.uk/wiki/uploads/DavidBarker/firewing/Firewing.zip]]
to:
* [[http://www.sfcompiler.co.uk/wiki/uploads/DavidBarker/firewing/Firewing.zip | Download Firewing Module]]
Deleted lines 52-60:





 

is marked using a standard Arduino notation to denote
%justify%There are 21 input / output pins, 6 of which can be configured for analog input (ADC) and 2 for Pulse Width Modulation (PWM).  Simply plug in some devices and sensors into the sockets or use a [[Firewing.Shields | dedicated shield]] to get things going.  The board itself is pin compatible with the Arduino UNO.
March 17, 2014, at 10:59 AM by David Barker -
Changed lines 7-54 from:
%justify%The Firewing module allows you to do this by aliasing the PIC style pin notation to the one used by Arduino.  In addition, the module provides routines to access ADC and PWM.  For example,
to:
%justify%The Firewing module allows you to do this by aliasing the PIC style pin notation to the one used by Arduino.  In addition, the module provides routines to access ADC and PWM.  For example, the following shows how to access the Pwm pins:

=code [=
' device and clock...
Device  = 18F25K22
Clock  = 64

' import firewing module...
Include "Firewing.bas"

' open Pwm on D5, set LED to low brightness...
PwmOpen(D5)
PwmWrite(D5, 50)

' open Pwn of D6, set to high brightness...
PwmOpen(D6)
PwmWrite(D6, 200)
=]
Accessing A0...A5 for Adc is really easy.  For example:

=code [=
' device and clock...
Device  = 18F25K22
Clock  = 64

' import modules...
Include "usart.bas"
Include "convert.bas"
Include "Firewing.bas"

' read a Adc value connected to A0 every one
' second and output the result...
Dim Value As Word
USART.SetBaudrate(br38400) 
While true
  Value = AdcRead(A0)
  USART.Write("Value = ", DecToStr(Value), 13, 10)
  delayms(1000)
End While
=]
Note that the Firewing USART should be set for 38400 baud operation. To use the Firewing module, download from here:

* [[Firewing Moodule | http://www.sfcompiler.co.uk/wiki/uploads/DavidBarker/firewing/Firewing.zip]]

unzip and then place in your "UserLibrary" folder.
 

March 17, 2014, at 10:50 AM by David Barker -
Added lines 1-14:
%lfloat text-align=center margin-top=5px margin-right=16px margin-bottom=5px margin-left=16px% http://www.sfcompiler.co.uk/wiki/uploads/DavidBarker/firewing/firewing-r2-pic18-small.jpg |

%justify%[[http://www.firewing.info/pmwiki.php?n=Main.HomePage | Firewing for PIC18]] is based around a powerful Microchip 8 bit 18F25K22 microcontroller that can can be clocked at up to 64MHz.  It has an easy to use USB interface, enabling you to both program your board and send and receive serial data to and from your PC. The board can be powered from the USB port or by an external supply, providing both 3.3v and 5v supplies for any connected shields or devices. In addition to standard [[http://www.firewing.info/pmwiki.php?n=Firewing.Shields | Firewing shields]], the board is pin compatible with Arduino UNO.  This gives Swordfish access to a multitude of hardware options! 

%justify%The [[http://www.firewing.info/pmwiki.php?n=Main.HomePage | Firewing board]] silkscreen has pins marked like the [[http://www.firewing.info/downloads/pdf/main-board-pins-pic18.pdf | Arduino]], with A0...A5 denoting analog or digital IO pins and D0...D13 denoting digital IO pins.  You can access these pins directly using standard syntax like PORTB.2, PORTA.0 etc ([[http://www.firewing.info/downloads/pdf/pic-pin-map-r2-pic18.pdf | This diagram shows you the mappings]]).  However, it's usually much easier to use DO, A3 etc directly, as shown on the [[http://www.firewing.info/downloads/pdf/main-board-pins-pic18.pdf | board]].

%justify%The Firewing module allows you to do this by aliasing the PIC style pin notation to the one used by Arduino.  In addition, the module provides routines to access ADC and PWM.  For example,



 

is marked using a standard Arduino notation to denote
%justify%There are 21 input / output pins, 6 of which can be configured for analog input (ADC) and 2 for Pulse Width Modulation (PWM).  Simply plug in some devices and sensors into the sockets or use a [[Firewing.Shields | dedicated shield]] to get things going.  The board itself is pin compatible with the Arduino UNO.
March 17, 2014, at 10:32 AM by David Barker -