My thanks go to Jeff Shmoyer. Experimenting with the PicBasic Pro Compiler Introduction The BASIC language has been popular since it’s conception in the. EXPERIMENTINGwiththe PICBASICPRO Y ByLesJohnson ACOLLECTIONOFBWLINGBLOCKS ANDWORKINGAPPLICATIONS USINGMELABS. Experimenting with the PicBasic Pro compiler PicBasic Pro компилятор. Read more Man-Made Materials (Experimenting With Everyday Science).

Author: Moogurr Kabar
Country: Niger
Language: English (Spanish)
Genre: Personal Growth
Published (Last): 9 November 2013
Pages: 211
PDF File Size: 13.42 Mb
ePub File Size: 11.16 Mb
ISBN: 657-8-28873-965-3
Downloads: 92128
Price: Free* [*Free Regsitration Required]
Uploader: Mazuzragore

If you find the LED is constantly illuminated, the frequency of the modulation may be increased or decreased.

However, this is transparent to your BASIC program, and all that is required are that a few variables be loaded, and a call made to the relevant subroutine. However, this loop could easily be replaced by the ADCIN command for displaying the voltage converted.

Page Dallas 1-wire interface principals. This is achieved by setting picgasic of the control byte to 1, figure 4. A check is then made of the variable DP which holds the decimal point placement. Most devices are used as slaves while microcontrollers are typically masters. Therefore, this section will give an insight on how other devices using a serial interface communicate with the PIC. The next eight bits are the data value to be latched into the selected RDAC.

The I2CREAD command reads picbbasic a full bit word, so the result has to be shifted 4 places to the right to correct this. In order to eliminate false reflections the process is carried out ten times and only when ten reflections are received is the expwrimenting LED lit, which indicates that an object has been positively detected.


However, because it takes eight clock cycles to transfer a byte, and the master also needs to send instructions and addresses, the maximum rate of data transfer is usually no more than 4ms per byte. CMD is then shifted right one place, and the same process is carried out eight times to transmit the 8-bit byte least significant bit first.

First, the address bits of A1 and AO must be sent, table 5.

Care has been taken to configure only the relevant bits that the keypad is attached to. If no aerial or capacitor is used, a typical range is approx 5 metres.

Experimenting with the PicBasic Pro compiler

The microcontroller can strobe the clock at its convenience, up to the maximum speed of the device. Intensity sets the overall brightness of the displays 0 to Therefore, in reality we are dividing each time we multiply by that number i. Each infrared LED is pulsed in turn and experimehting reflection is detected. It only has one input but still has a resolution of bits and can use its internal 4. O experimentinng be cleared.

This is called 25XXXX. MAXI 27 control byte. IRPD with distance gauge. The likelihood of the same three characters being randomly produced wiith virtually non-existent.


Experimenting with the PicBasic Pro Compiler – Les Johnson – Google Books

Sony, infrared remote control Transmitter. The CS pin is returned to its high position disabling the eepromand a delay of 5ms is executed, picasic the byte to be written to the eeproms memory array. Finally, if WP is high, before you can write to the status register or the portion of memory enabled in the status register, the eeprom must receive a Experimentiing Write Enable Latch instruction.

We shall also look at detection using ultrasonic sound. Modulating the frequency of the sound at 40kHz has the same effect as modulating the infrared signals, that of ambient noise elimination almost. As the digital value is increased, the Rwa resistance decreases.

Switch-mode negative voltage generator. The formula for calculating the actual voltage is: To control the direction of a motor with logic levels presented from the PIC, we use an H-bridge circuit. The port pins that are desired as analogue inputs must also have their TRIS value set as input 1.