Sign in

username:

password:



Not a member?

Search basicx



Search tips

Subscribe to basicx



basicx by Keywords

Accelerometer | ADC | ADXL | Adxl20 | AVR | BasicStamp | BX-35 | BX28 | BX35 | COM3 | Compiler | Downloader | EEPROM | Electromagnet | GetADC | GP2D1 | GPS | I2C | IDE | Keypad | LCD | LCD+ | MIDI | Motors | Multitasking | Netmedia | Networking | PCB | PID | PlaySound | PWM | Relays | RTC | Servo | ShiftOut | SitePlayer | SPI | Stack | Timer | USB

Ads

Discussion Groups

Discussion Groups | BasicX | Basic X Speed

Discussion forum for the BasicX family of microcontroller chips.

Basic X Speed - sunilstm - Mar 16 17:21:45 2007

Hi,

Could anyone help me with the following

1- what is the time delay between instruction ( in nSeconds)
2- Is there a way to Store( Register) the State of ALL input lines in
one statement.
3- I basically need to turn a line high and then within 5microseconds
read and store the state of 8 Input lines.

Thanks



(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )


Re: Basic X Speed - Chris - Mar 16 19:12:38 2007

It really depends on the instruction. It's about 2us at it's lowest.

This code should work:

Dim Data As Byte

Sub Main()

' Set portc to all inputs
Register.PortC = &H00

Call PutPin(13, 1) ' Set pin 13 High
Data = Register.PinC 'Read portc (pins 5 - 12)
Debug.Print CStr(Data) ' Print the data out com1
Call PutPin(13, 0) ' Set Pin 13 Low

Do
Sleep(90)
Loop

End Sub

----- Original Message -----
From: "sunilstm"
To:
Sent: Friday, March 16, 2007 2:14 PM
Subject: [BasicX] Basic X Speed
> Hi,
>
> Could anyone help me with the following
>
> 1- what is the time delay between instruction ( in nSeconds)
> 2- Is there a way to Store( Register) the State of ALL input lines in
> one statement.
> 3- I basically need to turn a line high and then within 5microseconds
> read and store the state of 8 Input lines.
>
> Thanks
> Yahoo! Groups Links
>



(You need to be a member of basicx -- send a blank email to basicx-subscribe@yahoogroups.com )