PicBasic Pro Compiler 2.2

Novi PicBasic Pro Compiler vam mnogo više olakšava da programirate brze i moćne PIC mikrokontrolere firme Microchip Technology.

PicBasic Pro Compiler karakteristike: BASIC Stamp II komande, direct i library rutinski pristup pinovima na PORTA, C, D, E, i isto tako dobro i na PORTB, matrice, pravi IF..THEN..else i interrupt processing in BASIC.

PicBasic Pro Compiler vam omogućava direktan pristup svim PICmicro registrima - I/O ports, A/D konverterima, hardware serijskim portovima, itd. - lako i u BASIC-u. On se automatski brine i o straničnim granicama u RAM bankama. Takođe su uključene u ugrađene komande za kontrolu inteligentnih LCD modula.

PicBasic Pro Compiler set instrukcija je obrnuto nagore kompatibilan sa BASIC Stamp II i Pro koristi BS2 syntaksu. Programi mogu da budu kompilirani i programirani direktno u PICmicro, eliminišući potrebu za BASIC Stamp modulom. Ovi programi se mnogo brže izvršavaju i mogu biti duži nego njihovi Stamp ekvivalenti.

PicBasic Pro Compiler je jedna DOS aplikacija (takođe radi i u Windows-u) i radi na svim PC platformama. On može da kreira programe za PIC12C67x, PIC12CE67x, PIC14C000, PIC16C55x, 6xx, 7xx, 84, 92x, PIC16CE62x, PIC16F62x, 8x, 87x, PIC17Cxxx and PIC18Cxxx mikrokontrolere i radi sa većinom PICmicto programera, uključujući i EPIC Plus Pocket PICmicro Programer.

PicBasic Pro Compiler se takođe može koristiti i unutar Microchip-ovog MPLAB IDE. To dozvoljava programima da budu editovani i simulirani u Windows-u. Više informacija na MPLAB stranici

Verzija PicBasic Pro Compiler 2.3 dodaje podršku za 16-bitno jezgro PIC18Cxxx mikrokontrolera.

Karakteristike PicBasic Pro Compiler-a:

- BASIC Stamp I and II library
- True compiler provides faster program execution and longer programs than BASIC interpreters
- Direct and library routine access to any pin or register
- Automatic page boundary handling past 2K
- Bit, byte and word arrays
- Real If..Then..Else..Endif
- Hierarchal expression handling
Interrupts in BASIC and assembler
- Built-in LCD support
- Oscillator support from 3.58MHz to 20MHz
- I2C instructions to access more external devices including serial EEPROMs
- More variable space (processor dependent)
- In-line assembler and Call support MPASM / ICE compatibilty
- Use in DOS or Windows
- Supports PIC12C67x, 12CE67x, 14C000, 16C55x, 6xx, 7xx, 84, 92x, 16CE62x, 16F62x, 8x, 87x, 17Cxxx and 18Cxxx microcontrollers
- Compatible with most PICmicro programmers (see EPIC Plus Pocket PICmicro Programmer)

 

Uputstvo za korišćenje PicBasic Pro-a (na engleskom, 343 kb, PDF format - 2/99) možete preuzeti ovde.


Trenutno su (ne) podržani sledeći PICmicro mikrokontroleri:

12C508(A), 12C509(A), 12CE518, 12CE519: Nisu podržani zbog 12-bitnog jezgra.

12C671, 12C672, 12CE673, 12CE674: Podržani.

14C000: Podržani.

16C505, 16C52, 16C54, 16C55, 16C56, 16C57, 16C58, 16HV540: Nisu podržani zbog 12-bitnog jezgra.

16C554(A), 16C556(A), 16C558(A), 16C61, 16C62(AB), 16C620(A), 16C621(A), 16C622(A), 16C63(A), 16C64(A), 16C641, 16C642, 16C65(AB), 16C66, 16C661, 16C662, 16C67, 16C71, 16C710, 16C711, 16C712, 16C715, 16C716, 16C717, 16C72(A), 16C73(AB), 16C74(AB), 16C76, 16C77, 16C770, 16C771, 16C773, 16C774, 16C84, 16C923, 16C924, 16CE623, 16CE624, 16CE625, 16F627, 16F628, 16F83, 16F84(A), 16F872, 16F873, 16F874, 16F876, 16F877: Podržani.

17C42A, 17C43, 17C44, 17C752, 17C756(A), 17C762, 17C766: Podržani.

18C242, 18C252, 18C442, 18C452: Podržani.

PicStic1, PicStic2, PicStic3, PicStic4: Podržani.


PicBasic Pro set instrukcija:

  • @ - Insert one line of assembly language code.*
  • ADCIN - Read on-chip analog to digital converter.*
  • ASM..ENDASM - Insert assembly language code section.*
  • BRANCH - Computed GOTO (equiv. to ON..GOTO).
  • BRANCHL - BRANCH out of page (long BRANCH).*
  • BUTTON - Debounce and auto-repeat input on specified pin.
  • CALL - Call assembly language subroutine.
  • CLEAR - Zero all variables.*
  • CLEARWDT - Clear Watchdog Timer.*
  • COUNT - Count number of pulses on a pin.
  • DATA - Define initial contents of on-chip EEPROM.
  • DEBUG - Asynchronous serial output to fixed pin and baud.
  • DEBUGIN - Asynchronous serial input from fixed pin and baud.*
  • DISABLE - Disable ON INTERRUPT and ON DEBUG processing.*
  • DISABLE DEBUG - Disable ON DEBUG processing.*
  • DISABLE INTERRUPT - Disable ON INTERRUPT processing.*
  • DTMFOUT - Produce touch-tones on a pin.
  • EEPROM - Define initial contents of on-chip EEPROM.
  • ENABLE - Enable ON INTERRUPT and ON DEBUG processing.*
  • ENABLE DEBUG - Enable ON DEBUG processing.*
  • ENABLE INTERRUPT - Enable ON INTERRUPT processing.*
  • END - Stop execution and enter low power mode.
  • FOR..NEXT - Repeatedly execute statements.
  • FREQOUT - Produce up to 2 frequencies on a pin.
  • GOSUB - Call BASIC subroutine at specified label.
  • GOTO - Continue execution at specified label.
  • HIGH - Make pin output high.
  • HSERIN - Hardware asynchronous serial input.*
  • HSEROUT - Hardware asynchronous serial output.*
  • I2CREAD - Read bytes from I2C device.*
  • I2CWRITE - Write bytes to I2C device.*
  • IF..THEN..ELSE..ENDIF - Conditionally execute statements.*
  • INPUT - Make pin an input.
  • {LET} - Assign result of an expression to a variable.
  • LCDIN - Read RAM on LCD.*
  • LCDOUT - Display characters on LCD.*
  • LOOKDOWN - Search constant table for value.
  • LOOKDOWN2 - Search constant / variable table for value.
  • LOOKUP - Fetch constant value from table.
  • LOOKUP2 - Fetch constant / variable value from table.
  • LOW - Make pin output low.
  • NAP - Power down processor for short period of time.
  • ON DEBUG - Execute BASIC debug monitor.*
  • ON INTERRUPT - Execute BASIC subroutine on an interrupt.*
  • OUTPUT - Make pin an output.
  • PAUSE - Delay (1mSec resolution).
  • PAUSEUS - Delay (1uSec resolution).*
  • PEEK - Read byte from register.*
  • POKE - Write byte to register.*
  • POT - Read potentiometer on specified pin.
  • PULSIN - Measure pulse width on a pin.
  • PULSOUT - Generate pulse to a pin.
  • PWM - Output pulse width modulated pulse train to pin.
  • RANDOM - Generate pseudo-random number.
  • RCTIME - Measure pulse width on a pin.
  • READ - Read byte from on-chip EEPROM.
  • RESUME - Continue execution after interrupt handling.*
  • RETURN - Continue execution at statement following last executed GOSUB.
  • REVERSE - Make output pin an input or an input pin an output.
  • SERIN - Asynchronous serial input (8N1) (BS1 style with timeout.)
  • SERIN2 - Asynchronous serial input (BS2 style.)
  • SEROUT - Asynchronous serial output (8N1) (BS1 style.)
  • SEROUT2 - Asynchronous serial output (BS2 style.)
  • SHIFTIN - Synchronous serial input.
  • SHIFTOUT - Synchronous serial output.
  • SLEEP - Power down processor for a period of time.
  • SOUND - Generate tone or white-noise on specified pin.
  • STOP - Stop program execution.
  • SWAP - Exchange the values of two variables.*
  • TOGGLE - Make pin output and toggle state.
  • WHILE..WEND - Execute code while condition is true. *
  • WRITE - Write byte to on-chip EEPROM.
  • XIN - X-10 input.*
  • XOUT - X-10 output.

Functions / Operators:

  • ABS - Absolute value
  • COS - Cosine
  • DCD - 2n decode
  • DIG - Return digit
  • MAX - Maximum
  • MIN - Minimum
  • NCD - Encode
  • REV - Reverse bits
  • SIN - Sine
  • SQR - Square root
  • + - / // * ** */ << >> & | ^ ~ && || ^^ &/ |/ ^/

*PicBasic Pro language extension not found on BS1/2.

 

Nekoliko primera programa možete pogledati ovde.

Microchip

Vesti - Prodavnica - Klub - Zanimljivosti - Besplatne stvari - Kontakt
Sva prava rezervisana za ProElektronik ® - Februar 2000.
Dizajn i WEB održavanje - MZ Studio ®