logo elektroda
logo elektroda
X
logo elektroda
Adblock/uBlockOrigin/AdGuard mogą powodować znikanie niektórych postów z powodu nowej reguły.

Przykładowe programy BASCOM

Fairgrounds 25 Sie 2002 14:39 5606 10
  • O autorze
    Fairgrounds
    Poziom 41  
    Offline 
    Fairgrounds napisał 22638 postów o ocenie 2979. Jest z nami od 2002 roku.
  • #2 6749449
    Fairgrounds
    Poziom 41  
    GoTo SerISR
    Autor: er.lebaron(_at_)hccnet.nl
    Przykładowe programy BASCOM
    Interrupt Routine for serial Data. Uses UART
    Get Serial Data via Interrupt
    This program can be integrated in your own program when you need a routine that captures serial data on interrupt basis. I intend to use it in a RS485 network with several nodes. Each node has its own address.

    To prevent unnecessary processor overhead the UART is set up for 9-bit communication. Only 9-bit bytes produce a serial interrupt. The isr checkes whether the address sent matches its own address.

    When it does, the UART is set up for 8-bit communication as the sender will do the same after sending the address byte.

    This way, futher transmitted data will not produce an interrupt on the nodes that were not addressed but only on the one that is.

    The number of bytes in a single packet is variable but is at least 8 (for my application).

    That is : the sender address, destination module address, destination device address 3 command bytes and 2 checksum bytes.

    Timer2 is started upon receiving serial data and produces an interrupt (timeout) when the time after a serial interrupt exeeds a certain value, indicating that the packet can be processed.
    Załączniki:
  • #3 6749450
    Fairgrounds
    Poziom 41  
    Load 535_LCDx.bas
    Autor: http://members.home.nl/bzijlstra
    Przykładowe programy BASCOM
    Program to drive a LCD-display in 4 bit mode that is connected via I2C to a philips PCF8574A 8 Bit I2C Port Expander
    Program to drive a LCD-display in 4 bit mode that is connected via I2C to a philips PCF8574A 8 Bit I2C Port Expander
    Załączniki:
  • #4 6751766
    Fairgrounds
    Poziom 41  
    Load Stepmotor
    Autor: http://members.home.nl/bzijlstra
    Przykładowe programy BASCOM
    Little demo program to drive a stepper motor. Uses two buttons to drive motor left or right while pressing the key.
    Little demo program to drive a stepper motor. Uses two buttons to drive motor left or right while pressing the key.
    Załączniki:
  • #5 6751767
    Fairgrounds
    Poziom 41  
    Load 535 key
    Przykładowe programy BASCOM
    Program to read a keyboard (4x4) connected to a PCF8574A I/O-Port Expander at address 72h
    Program to read a keyboard (4x4) connected to a PCF8574A I/O-Port Expander at address 72h
    Załączniki:
  • #6 6751768
    Fairgrounds
    Poziom 41  
    Load dat acq
    Przykładowe programy BASCOM
    Basic Program, that outputs an ANSI-Screen with ports and pin levels (high/low) in realtime.
    Basic Program, that outputs an ANSI-Screen with ports and pin levels (high/low) in realtime. Goes via RS232. Load an ANSI-Terminal on your PC, switch it to ANSI mode and connect your 80535 board to a com port. Now look, what logical levels you have at every pin and port! Shows Port 1,4,5 and 6. Can be altered easily for other ports or 8051 derivates.
    Załączniki:
  • #7 6751769
    Fairgrounds
    Poziom 41  
    Load ar5000_rc5.bas
    Przykładowe programy BASCOM
    Control the AOR AR-5000 receiver with a universal infrared remote control!
    Control the AOR AR-5000 receiver with a universal infrared remote control! The AOR AR-5000 is a broadband high quality receiver equipped with a rs232 for remote control. Use a programmable rc to control this receiver in frequency, bandwidth, mute, volume, receive mode and so on...
    Załączniki:
  • #8 6751770
    Fairgrounds
    Poziom 41  
    Load wiper
    Przykładowe programy BASCOM
    Automatic interval switch for the car’s wipers.
    Automatic interval switch for the car’s wipers. The interval switch for windscreen wipers adjusts the length of the stroke automatically. Bascom source code and readme.txt included as well as schematics for Protel 1.2..2.0 for Win and in encapsulated postscript format (eps)
  • #9 6751771
    Fairgrounds
    Poziom 41  
    Load textmatrix
    Przykładowe programy BASCOM
    This Bascom program uses a 3x4 keyboard matrix to input ASCII text!
    This Bascom program uses a 3x4 keyboard matrix to input ASCII text! The output is placed on the LC-Display and will be saved in the variable TEXT. If one key is pushed several times the characters of that key rotates at the cursor. When no key is pressed the cursor shifts to the next display-position after a while. This time can easely be changed.
    Załączniki:
  • #10 6751772
    Fairgrounds
    Poziom 41  
    Load Serial2Gpib
    Przykładowe programy BASCOM
    Serial to GPIB converter.
    Serial to GPIB converter. This Soft is made specific for Tektronix 4662 flatbed plotter with GPIB (IEE488) interface, and a strange GDU coordinate system..! Now it communicate with a HPGL device-driver trough a normal RS 232 serialport. More info in textfile inside zip.

  • #11 6751773
    Fairgrounds
    Poziom 41  
    Load CardLock (bascom AVR)
    Autor: Johan Thomas, NL
    Przykładowe programy BASCOM
    This Smartcard codelock can remember 2 smartcards (telephone cards) by reading a part of the data from the card into the internal eeprom.
    This Smartcard codelock can remember 2 smartcards (telephone cards) by reading a part of the data from the card into the internal eeprom. You can store more cards into the eeprom but this wasn't necessary by my project. So I didn't write any code for that. When you have read the data from the card into the eeprom you can use the card as a key. The schema.jpg file shows the hardware I used. It uses an AT90S2313. Easy alterable for other smartcard purposes.
REKLAMA