archive-nl.com » NL » P » PICBASIC.NL

Total: 182

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Universele RC5/RC6 IR zender
    drukken Om de command waarde in te stellen moet op de INSTEL toets aangesloten op PORTB 0 worden gedrukt Als deze toets langer word ingedrukt verandert de teller van richting Wordt deze INSTEL toets nog langer vastgehouden dan loopt de teller automatisch en steeds sneller Door PORTB 1 laag te maken wordt op bovenstaande manier niet de command code maar het RC5 of RC6 systeem adres ingesteld het systeem adres wordt opgeslagen in EEPROM De ingestelde RC5 of RC6 code wordt verzonden als PORTB 2 ZEND laag wordt gemaakt Als de INSTEL en ZEND toets tegelijk ingedrukt worden start het programma opnieuw en is opnieuw de keus tussen RC5 en RC6 te maken Let op De ENable en RS pinnen van het LCD zitten hier op PORTA 0 en A 1 Download IRZENDER HEX V 2 bestand om in een PIC16F628A te programmeren Download RC5 RC6 Zender V 2 NL bas de broncode voor PIC Basic Bestel geprogrammeerde PIC TIP 1 Dit project is er ook in combinatie met de RC5 RC6 ontvanger aanbevolen wordt om die te bouwen omdat het niet veel méér onderdelen heeft en daar is bovendien een printtekening bijgetekend TIP 2 Om de Pronto Neo van

    Original URL path: http://www.picbasic.nl/rc5-rc6_zender.htm (2016-02-17)
    Open archived version from archive


  • www.picbasic.nl

    (No additional info available in detailed archive for this subpage)
    Original URL path: /raam_dicht.htm (2016-02-17)


  • Review PIC Basic operators
    of places Bitwise reverse Reverses the order of the lowest bits in a value Returns the specified decimal digit of a positive value ABS Returns the absolute value of a number fABS Returns the absolute value of a number as FLOAT ACOS Returns the ARC COSINE of a value in radians ASIN Returns the ARC SINE of a value in radians ATAN Returns the ARC TANGENT of a value in radians COS Returns the COSINE of a value in radians DCD 2 n power decoder of a four bit value DIG Obsolete command see EXP Deduce the exponential function of a value ICOS Returns the COSINE of an integer value in radians ISIN Returns the SINE of an integer value in radians ISQR Returns the SQUARE ROOT of an integer value LOG Returns the NATUREAL LOG of a value LOG10 Returns the LOG of a value NCD Priority encoder of a 16 bit value POW Computes variable to the power of pow variable REV Obsolete command see fROUND Round a value to the nearest integer SIN Returns the SINE of a value in radians SQR Returns the SQUARE ROOT of a value TAN Returns the TANGENT of a value in

    Original URL path: http://www.picbasic.nl/pic_operatoren_uk.htm (2016-02-17)
    Open archived version from archive

  • Connect PICkit2 to Proton PIC Basic
    Basic First select View in the menu bar from Proton PIC Basic IDE and next Compile and Program Options 1 Click on tab Programmer and then click Install New Programmer 2 Select Create a custom programmer entry and click Next 3 Type the name PICkit2 and click Next 4 Type filename pk2cmd exe and click Next 5 Click on Find Manually 6 Search the Microchip folder Normally in the Program Files folder Open the folder Program Files by double clicking on it 7 Search the foldername Microchip and double click to open this folder 7a Now click the foldername PK2CMD click on it so that it becomes blue and click OK 8 Check if there stays c program files microchip pk2cmd on the screen If it s not then you ve done something wrong Back Is it allright then click Next 9 Fill in the next line the line on the image hereabove isn t complete PPIC target device F hex filename JN M R HK After this click on Finished The parameters are executed when hit in Proton PIC Basic F10 or F11 JN M R HK Messages on PC monitor while programming the PIC Program HEX from the PIC Basic program into the PIC Release MCLR Keep window open until a person hits a key HK Hit Key There are a lot more parameters More info can be find in the Readme for PK2CMD txt file which stays in the just made PK2CMD folder 10 Finally click OK From now on you can run PICkit2 in the PIC Basic IDE by pressing F10 with compiling or F11 without compiling F9 Compile the currently active editor page The compile button will generate a HEX file F10 Compile the currently active editor page generate a HEX file and run pk2cmd

    Original URL path: http://www.picbasic.nl/instelling_pickit2_uk.htm (2016-02-17)
    Open archived version from archive

  • Review PIC Basic commands
    signal using the CCP module HRSIN Receive data from the serial port on devices that contain a USART HRSOUT Transmit data to the serial port on devices that contain a USART HSERIN Receive data from the serial port on devices that contain a USART HSEROUT Transmit data to the serial port on devices that contain a USART HRSIN2 Same as HRSIN but using a 2nd USART if available HRSOUT2 Same as HRSOUT but using a 2nd USART if available HSERIN2 Same as HSERIN but using a 2nd USART if available HSEROUT2 Same as HSEROUT but using a 2nd USART if available I2CIN Read bytes from an I C device With user definable PIC ports for SDA SCL I2COUT Write bytes to an I C device With user definable PIC ports for SDA SCL IF THEN ELSEIF ELSE ENDIF Conditionally execute statements INC Variable Variable 1 Inc rement INCLUDE Load a BASIC file into the source code INKEY Scan a matrix keypad INPUT Make a pin or port an input LCDREAD Read a single byte from a graphic LCD LCDWRITE Write bytes to a graphic LCD LDATA Place information into code memory LEFT Extract n amount of characters from the left of a source string and copy them into a destination string LEN Find the length of a string NULL terminator not included LINE Draw a straight line in any direction on a graphic LCD LINETO Draw a straight line in any direction on a graphic LCD starting from the previous LINE command s end position LOADBIT Set or clear a bit of a port or variable using a variable index LOOKDOWN Search constant in table for value LOOKDOWNL Search constant or variable in table for value LOOKUP Fetch constant value from table LOOKUPL Fetch constant or variable value from table LOW Make pin or port low LREAD Read a value from a LDATA table LREAD8 Access 8 bit values from an LDATA table LREAD16 Access 16 bit values from an LDATA table LREAD32 Access 32 bit values from an LDATA table this also includes floating point values MID Extract n amount of characters from a source string beginning at n characters from the left and copy them into a destination string ON GOSUB Cause the program to Call a subroutine based on an index value ON GOTO Cause the program to jump to different locations based on a variable index On a PICmicro device with only one page of memory See BRANCH ON GOTOL Cause the program to jump to different locations based on a variable index On a PICmicro device with more than one page of memory or 16 bit core devices See BRANCHL ON HARDWARE INTERRUPT Execute a subroutine on a HARDWARE interrupt high priority ON INTERRUPT Execute a subroutine on a SOFTWARE interrupt ON INTERRUPT Execute a subroutine on a HARDWARE interrupt ON LOW INTERRUPT Execute a subroutine when a LOW PRIORITY HARDWARE interrupt occurs on a 16 bit core device OUTPUT Make a pin or port

    Original URL path: http://www.picbasic.nl/pic_commandos_uk.htm (2016-02-17)
    Open archived version from archive

  • Information about the PIC file stuffer
    stuffer exe the program becomes visible so that you can adjust the settings Installing PIC file stuffer Download PIC file stuffer on the bottom from this page and unzip it Place PIC file stuffer in the folder from the steeringprogram from your PIC programmer Example for the PICkit2 programmer Place PIC file stuffer exe when you use PK2CMD in folder C Program Files Microchip PK2CMD Examples for the Galva Wisp PIC programmer which have a choise between three programs Place PIC file stuffer exe when you use BumbleBee in folder C Program Files BumbleBee Place PIC file stuffer exe when you use XWisp in folder C Program Files XWisp Place PIC file stuffer exe when you use XWisp2 in folder C Program Files XWisp2 More steering programs at the same time is ofcourse also possible If you use i e BumbleBee as well as XWisp then place a PIC file stuffer exe in both folders Installing looks long winded but on this way works the program itself very easy Set up the PIC file stuffer Go to the folder where you have placed picfile stuffer exe As example we take the folder C Program Files BumbleBee for an other program i e XWisp or EpicWIN take the folder from thát program The PIC file stuffer in the folder from BumbleBee Start picfile stuffer exe by double clicking on it Click the Info button and select the desired language English or Nederlands At the same time you can read also the showed information After reading the infopage click there on button Back Now select the files which you never use and which can removed automatically direct after compiling If you program only PIC s then you can check all boxes except HEX because that s the file which shall be programmed into the PIC Finally fill in the box Programmer Filename i e Fill in for BumbleBee BumbleBee exe hex filename target target device Fill in for XWisp XWisp exe wait end port 19200 target target device go hex filename Fill in for XWisp2 XWisp2w exe baud 19200 rts on go hex filename Fill in for PICkit2 pk2cmd exe PPIC target device F hex filename JN M R For the PICkit2 hitkey version you may also place parameter HK at the end Pay attention that the line from i e BumbleBee happens in the PIC file stuffer which stays in the BumbleBee folder Thus that the adjustments from BumbleBee not happens in the wrong PIC file stuffer else your PIC programmer will not start By the way in some cases a baudrate of 38400 instead of 19200 is also possible Finally click OK so that your adjustments are saved and PIC file stuffer closes itself The Cancel button closes PIC file stuffer without saving changed adjustments PIC file stuffer is now installed and adjusted Now we have to connect PIC file stuffer to PIC Basic PIC file stuffer with BumbleBee connect to PIC Basic ATTENTION BumbleBee is an example program from

    Original URL path: http://www.picbasic.nl/stuffer_uk.htm (2016-02-17)
    Open archived version from archive

  • Lijst PIC types Galva-Wisp
    16F1824 16F1825 16F1826 16F1827 16F1828 16F1829 16F1933 16F1934 16F1936 16F1937 16F1938 16F1939 16F1946 16F1947 18F242 18F248 18F252 18F258 18F442 18F448 18F452 18F458 18F1220 18F1230 18F1320 18F1330 18F2220 18F2221 18F2320 18F2321 18F2331 18F2410 18F2420 18F2423 18F2431 18F2439 18F2450 18F2455 18F2458 18F2480 18F2510 18F2515 18F2520 18F2523 18F2525 18F2539 18F2550 18F2553 18F2580 18F2585 18F2610 18F2620 18F2680 18F2682 18F2685 18F4220 18F4221 18F4320 18F4321 18F4331 18F4410 18F4420 18F4423 18F4431 18F4439 18F4450 18F4455 18F4458 18F4480 18F4510

    Original URL path: http://www.picbasic.nl/piclijst_galva-wisp_uk.htm (2016-02-17)
    Open archived version from archive

  • Connect Wisp628, Wisp648 or Galva-Wisp to Proton PIC Basic
    Program Options 1 Click on tab Programmer and then click Install New Programmer 2 Select Create a custom programmer entry and click Next 3 Type the name XWisp and click Next 4 Type filename XWisp exe and click Next 5 Click on Find Manually 6 Search the XWisp folder Normally in the Program Files folder Open the folder Program Files by double clicking on it 7 Search the foldername XWisp not XWisp2 and click on it so that it becomes blue and click next on OK 8 Check if there stays c program files xwisp on the screen If it s not then you ve done something wrong Back Is it allright then click Next 9 Fill in the next line the line on the image hereabove isn t complete For Galva Wisp For Wisp628 648 wait err port 19200 target target device go hex filename wait err target target device go hex filename Sometimes it s also necessary to place the COM port into these parameters Suppose that the programmer is connected to COM port 3 then place com3 on front from these parameters The parameter wait err makes that XWisp doesn t close itself when an error occurs

    Original URL path: http://www.picbasic.nl/instelling_xwisp_uk.htm (2016-02-17)
    Open archived version from archive



  •