ВУЗ: Не указан
Категория: Не указан
Дисциплина: Не указана
Добавлен: 12.06.2025
Просмотров: 8334
Скачиваний: 1
© MCS Electronics, 1995-2007
Action
Shift the cursor of the LCD display left or right by one position.
Syntax
SHIFTCURSOR LEFT | RIGHT
See also
SHIFTLCD
Partial Example
LCD "Hello"
SHIFTCURSOR LEFT
End
SHIFTIN
Action
Shifts a bit stream into a variable.
Syntax
SHIFTIN pin , pclock , var , option [, bits , delay ]
Remarks
Pin |
The port pin which serves as an input.PINB.2 for example |
|
Pclock |
The port pin which generates the clock. |
|
Var |
The variable that is assigned. |
|
Option |
Option can be : |
|
0 |
– MSB shifted in first when clock goes low |
|
1 |
– MSB shifted in first when clock goes high |
|
2 |
– LSB shifted in first when clock goes low |
|
3 |
– LSB shifted in first when clock goes high |
|
Adding 4 to the parameter indicates that an external clock signal is used for |
||
the clock. In this case the clock will not be generated. So using 4 wil be the |
||
same a 0 (MSB shifted in first when clock goes low) but the clock must be |
||
generated by an external signal. |
||
4 |
– MSB shifted in first when clock goes low with ext. clock |
|
5 |
– MSB shifted in first when clock goes high with ext. clock |
|
6 |
– LSB shifted in first when clock goes low with ext. clock |
|
7 |
– LSB shifted in first when clock goes high with ext. clock |
|
Bits |
Optional number of bits to shift in. Maximum 255. |
|
Delay |
Optional delay in uS. When you specify the delay, the number of bits must |
|
also be specified. When the number of bits is default you can use NULL for |
||
the BITS parameter. |
||
If you do not specify the number of bits to shift, the number of shifts will depend on the type
page -649-