- •Functions:
- •Void serialEvent(){
- •IsDirectory(); //
- •It is putting within brackets of void loop(){}, instead of pin to write pin input-output signal
- •It is putting before void setup(){}, instead of pin to write pin input-output signal
- •It is putting within brackets of void loop(){}, instead of pin to write pin input-output signal
- •It is putting before void setup(){}, instead of pin to write pin input-output signal
- •It is putting within brackets of void loop(){}, instead of pin to write pin input-output signal
- •It defines with device pin of further syntax structure, instead of pin to write pin input-output signal
- •Interrupts(); //other code here
- •IsDirectory(); //
Void serialEvent(){
// it called when data is available for the ...
}
SerialUSB.available(); //
SerialUSB.availableForWrite(); //
SerialUSB.begin(); //
SerialUSB.end(); //
SerialUSB.find(); //
SerialUSB.findUntil(); //
SerialUSB.flush(); //
SerialUSB.parseFloat(); //
SerialUSB.parseInt(); //
SerialUSB.peek(); //
SerialUSB.print(); //
SerialUSB.println(); //
SerialUSB.read(); //
SerialUSB.readBytes(); //
SerialUSB.readBytesUntil(); //
SerialUSB.readString(); //
SerialUSB.readStringUntil(); //
SerialUSB.setTimeout(); //
SerialUSB.write(); //
Stream.available(); // it gets the number of bytes available in the stream
Stream.read(); // it reads characters from an incoming stream to the buffer
Stream.flush(); // it clears the buffer once all outgoing characters have been sent
Stream.find(); // it reads data from the stream until the target string of given length is found
Stream.findUntil(); // it reads data from the stream until the target string of given length or terminator string is found
Stream.peek(); // it read a byte from the file without advancing to the next one
Stream.readBytes(); // it reads characters from a stream into a buffer
Stream.readBytesUntil(); // it reads characters from a stream into a buffer until ...
Stream.readString(); // it reads characters from a stream into a string
Stream.readStringUntil(); // it reads characters from a stream into a string until ...
Stream.parseInt(); // it returns the first valid (long) integer number from the serial buffer
Stream.parseFloat(); // it returns the first valid floating point number from the current position
Stream.setTimeout(); // it sets the maximum milliseconds to wait for stream data, it defaults to 1000 milliseconds
File class functions
The File class allows for reading from and writing to individual files on the SD card.
available(); //
close(); //
flush(); //
peek(); //
position(); //
print(); //
println(); //
seek(); //
size(); //
read(); //
write(); //
IsDirectory(); //
openNextFile(); //
rewindDirectory(); //
Functions of auto-scroll method
autoscroll(); //moves all the text one space to the left each time a letter is added
noAutoscroll(); //turns scrolling off
Secure Digit class functions
The Secure Digit class provides functions for accessing the Secure Digit card and manipulating its files and directories.
SD.begin(); //it initializes the secure digit card memory
SD.exists(); //the secure digit card memory exists
SD.mkdir(); //it makes the direction of the secure digit card memory
SD.open(); // the secure digit card memory can open
SD.remove(); // the secure digit card memory can remove
SD.rmdir(); // it removes the direction of the secure digit card memory
SDHC.begin(); //it initializes the secure digit high capacity card memory
SDHC.exists(); //the secure digit high capacity card memory exists
SDHC.mkdir(); //it makes the direction of the secure digit high capacity card memory
SDHC.open(); //the secure digit high capacity card memory can open
SDHC.remove(); //the secure digit high capacity card memory can remove
SDHC.rmdir(); //it removes the direction of the secure digit high capacity card memory
Ethernet class functions
Ethernet.begin(); //it initializes the Ethernet library and network settings.
Ethernet.localIP(); // it obtains the IP-address of the Ethernet shield. Useful when the address is auto assigned through Dynamic Host Configuration Protocol.
Ethernet.maintain(); //it allows for the renewal of Dynamic Host Configuration Protocol leases.
Functions of Universal serial bus (USB) function (32u4 based boards and Due/Zero only)
Keyboard.begin(); //it starts emulating a keyboard connected to a computer
Keyboard.end(); //it stops the keyboard emulation to a connected computer
Keyboard.press(); //it functions as if a key were pressed and held on your keyboard
Keyboard.print(); //it must be called after initiating of the print characters
Keyboard.println(); //it must be called after initiating of the print data
Keyboard.release(); //it functions for more information
Keyboard.releaseAll(); //it functions for additional information
Keyboard.write(); //it sends a keystroke to a connected computer
Mouse.begin(); // it begins emulating the mouse connected to a computer
Mouse.click(); // it sends a momentary click to the computer at the location of the cursor
Mouse.end(); // it stops emulating the mouse connected to a computer
Mouse.move(); // it moves the cursor on a connected computer
Mouse.press(); // it sends a button press to a connected computer
Mouse.release(); // it sends a message that a previously pressed button ...
Mouse.isPressed(); // it checks the current status of all mouse buttons, and reports if any are pressed or not
Functions of scroll
scrollDisplayLeft(); // it scrolls the contents of the liquid crystal display (text and cursor) one space to the left
scrollDisplayRight(); // it scrolls the contents of the liquid crystal display (text and cursor) one space to the right
Functions of liquid crystal display
Creates a variable of type LiquidCrystal lcd(); . The display can be controlled using 4 or 8 data lines. If the former, omit the pin numbers for d0 to d3 and leave those lines unconnected. The RW pin can be tied to ground instead of connected to a pin on the Arduino; if so, omit it from this function's parameters.
Syntax:
LiquidCrystal lcd(RS, enable, D4, D5, D6, D7); //
LiquidCrystal lcd(RS, RW, enable, D4, D5, D6, D7); //
LiquidCrystal lcd(RS, enable, D0, D1, D2, D3, D4, D5, D6, D7); //
LiquidCrystal lcd(RS, RW, enable, D0, D1, D2, D3, D4, D5, D6, D7); //
LiquidCrystal lcd(2, 3, 4, 5, 6, 7); // (RS, RW, enable, D0, D1, D2, D3, D4, D5, D6, D7)
Example:
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 10, 5, 4, 3, 2); //
void setup()
{
lcd.begin(16, 1); //
lcd.print("hello, world!"); //
}
void loop() {}
//set up the liquid crystal display's number of columns and rows:
lcd.begin(); //it initializes the interface to the Liquid Crystal display screen
lcd.end(); // it stops the timer and frees the pin of the liquid crystal display, chosen for the sampling.
lcd.print(); //it prints text or characters to the Liquid Crystal display screen
lcd.println(); // it prints data to the liquid crystal display
// set the cursor to …:
lcd.setCursor(); //It allows you to control Liquid Crystal displays that are compatible with the ...
lcd.createChar(); //it creates the characters on the liquid crystal display
lcd.read(); // it reads incoming data of liquid crystal display
lcd.write(); //it writes binary data to the liquid crystal display
// set the display to automatically scroll:
lcd.autoscroll(); // it moves all the text of liquid crystal display, one space to the left each time a letter is added
// turn off automatic scrolling:
lcd.noAutoscroll(); // it turns off the scrolling of the liquid crystal display
//clear screen for the next loop:
lcd.clear(); //it clears the Liquid Crystal display screen
lcd.init(); // initialization of liquid crystal display
lcd.backlight(); //it turns on the light of liquid crystal display
lcd.display(); //it turns on the Liquid Crystal display
lcd.noDisplay(); //it turns off the Liquid Crystal display
lcd.blink(); //it displays the blinking of liquid crystal display cursor
lcd.noBlink(); //it turns off the blinking Liquid Crystal display cursor
lcd.leftToRight(); //it allows to shift liquid crystal display from left to right
lcd.rightToLeft(); //it allows to shift liquid crystal display from right to left
lcd.scrollDisplayLeft(); //it scrolls the contents of the display (text and cursor) one space to the left
lcd.scrollDisplayRight(); //it scrolls the contents of the display (text and cursor) one space to the right
lcd.noCursor(); //it hides the liquid-crystal display cursor
lcd.home(); //it positions the cursor in the upper-left of the liquid-crystal display
Functions of light-emitting diode display
OzOled.clearDisplay(); //it clears the screen and set start position to top left corner of light-emitting diode display
OzOled.setNormalDisplay(); //it sets light-emitting diode display to normal mode (i.e non-inverse mode)
OzOled.setPageMode(); //it sets addressing mode to Page Mode
OzOled.printString(“”); //it prints the strings on the light-emitting diode display
OzOled.printNumber(); //it prints the numbers on the light-emitting diode display
OzOled.setHorizontalMode(); //it Sets addressing mode to Horizontal Mode of the light-emitting diode display
OzOled.printNumber((long)123, 0, 0); // it prints the numbers on the light-emitting diode display
OzOled.init(); //it initializes Oscar light-emitting diode display
OzOled.drawBitmap(OscarLogo, 0, 0, 16, 8); //
OzOled.setActivateScroll(Scroll_Left, 0, 7,Scroll_5Frames); //it sets the properties of Horizontal Scroll
Functions of media player
File.play(); //it plays multimedia track
File.stop(); //it stops multimedia track
File.next(); //it plays next multimedia track
File.prepare(); //
Audio.play(); //
Audio.next(); //
Audio.stop(); //
Audio.prepare(); //
Functions of Serial Peripheral Interface (SPI)
SPI.begin(); //it initializes the serial peripheral interface
SPI.end(); // it stops the timer and frees the pin of the serial peripheral interface
SPI.beginTransaction(); //it initializes the transaction of the serial peripheral interface
SPI.endTransaction(); //
SPI.setBitOrder(); //
SPI.setClockDivider(); //
SPI.setDataMode(); //
SPI.transfer(); //
SPI.usingInterrupt(); //
Functions of two-wire interface i2c
Wire.begin(); //it initializes the two-wire interface of i2c
Wire.requestFrom(); //it requests from two-wire interface ... bytes from slave device #...
Wire.beginTransmission(); // it begins a transmission to the i2c slave device with the given address
Wire.endTransmission(); //it ends a transmission to a slave device that was begun by ...
Wire.write(); //it writes data from a slave device in response to a request from a master device
Wire.available(); //it returns the number of bytes available for retrieval with ...
Wire.read(); //it reads a byte that was transmitted from a slave device to a master device after a call to ...
Wire.onReceive(); // it registers a function to be called when a slave device receives a transmission from a master device
Wire.onRequest(); //it registers a function to be called when a master device requests data from this slave device
Functions of Process Class
Process.begin(); //it starts a Linux process identified ...
Process.addParameter(); //it adds a parameter to a Linux command initiated with ...
Process.run(); //it starts a Linux process identified in ...
Process.runAsynchronously(); //
SPI.setClockDivider(); //it sets the Serial Peripheral Interface clock divider relative to the system clock
SPI.setDataMode(); //it sets the Serial Peripheral Interface data mode
SPI.setBitOrder(); //it sets the order of the bits shifted out of and into the Serial Peripheral Interface bus
Control questions:
What is a pin mode?
Give the characteristic of the operator when it configures the specified pin to behave either as an input or an output
Give the characteristic of the operator when it writes a HIGH or a LOW value to a digital pin
Give the characteristic of the operator when it reads the value from a specified digital pin, either HIGH or LOW
Give the characteristic of the operator when it configures the reference voltage used for analog input (also the value used as the top of the input range)
Give the characteristic of the operator when it reads the value from the specified analog pin …
Give the characteristic of the operator when it writes an analog value (Pulse Width Modulation wave) to a pin …
What are Due and Zero functions?
Give the characteristic of the operator when it sets the size (in bits) of the value returned by the analog reads
Give the characteristic of the operator when it sets the resolution of the analog writes
What are Advanced Input/Output functions?
Give the characteristic of the operator when it generates a square wave of the specified frequency (and 50% duty cycle) on a pin…
Give the characteristic of the operator when it stops the generation of a square wave triggered by tone
Give the characteristic of the operator when it shifts out a byte of data one bit at a time
Give the characteristic of the operator when it shifts in a byte of data one bit at a time
Give the characteristic of the operator when it reads a pulse from ... pin
What are time functions?
Give the characteristic of the operator when it returns the number of milliseconds since the … began running the current program
Give the characteristic of the operator when it returns the number of microseconds since the ... began running the current program
Give the characteristic of the operator when it pauses the program for the amount of time (in milliseconds) specified as parameter
Give the characteristic of the operator when it pauses the program for the amount of time (in microseconds) specified as parameter
What are mathematic functions?
Give the characteristic of the operator when it calculates the minimum of two numbers
Give the characteristic of the operator when it calculates the maximum of two numbers
Give the characteristic of the operator when it computes the absolute value of a number
Give the characteristic of the operator when it constrains a number to be within a range
Give the characteristic of the operator when it remaps a number from one range to another
Give the characteristic of the operator when
What are communication functions?
Give the characteristic of the operator when it gets the number of bytes (characters) available for reading from the serial port
Give the characteristic of the operator when it gets the number of bytes (characters) available for writing in the serial buffer without blocking the write operation
Give the characteristic of the operator when it sets the data rate Give the characteristic of the operator when in bits per second (baud) for serial data transmission
Give the characteristic of the operator when it disables serial communication, allowing the receiving and transmitting pins to be used for general input and output
Give the characteristic of the operator when it reads data from the serial buffer until the target string of given length is found
Give the characteristic of the operator when it reads data from the serial buffer until a target string of given length or terminator string is found
Give the characteristic of the operator when it waits for the transmission of outgoing serial data to complete
Give the characteristic of the operator when it returns the first valid floating point number from the Serial buffer
Give the characteristic of the operator when it looks for the next valid integer in the incoming serial stream
Give the characteristic of the operator when it returns the next byte (character) of incoming serial data without removing it from the internal serial buffer
Give the characteristic of the operator when it prints data to the serial port as human-readable American Standard Code for Information Interchange text
Give the characteristic of the operator when it prints data to the serial port as human-readable American Standard Code for Information Interchange text followed by a carriage return character (American Standard Code for Information Interchange 13, or '\r') and a new line character (American Standard Code for Information Interchange 10, or '\n')
Give the characteristic of the operator when it reads incoming serial data
Give the characteristic of the operator when it reads characters from the serial port into a buffer
Give the characteristic of the operator when it reads characters from the serial buffer into an array
Give the characteristic of the operator when it reads characters from the serial buffer into a string
Give the characteristic of the operator when it reads characters from the serial buffer into a string until ...
Give the characteristic of the operator when it sets the maximum milliseconds to wait for serial data when using
Give the characteristic of the operator when it writes binary data to the serial port
What are functions of liquid crystal display?
Give the characteristic of the operator when it initializes the interface to the Liquid Crystal display screen
Give the characteristic of the operator when it stops the timer and frees the pin of the liquid crystal display, chosen for the sampling.
Give the characteristic of the operator when it prints text or characters to the Liquid Crystal display
Give the characteristic of the operator when it prints data to the liquid crystal display
Give the characteristic of the operator when It allows you to control Liquid Crystal displays that are compatible with the ...
Give the characteristic of the operator when it creates the characters on the liquid crystal display
Give the characteristic of the operator when it reads incoming data of liquid crystal display
Give the characteristic of the operator when it writes binary data to the liquid crystal display
Give the characteristic of the operator when it moves all the text of liquid crystal display, one space to the left each time a letter is added
Give the characteristic of the operator when it turns off the scrolling of the liquid crystal display
Give the characteristic of the operator when it clears the Liquid Crystal display screen
Give the characteristic of the operator when it initializes of liquid crystal display
Give the characteristic of the operator when it turns on the light of liquid crystal display
Give the characteristic of the operator when it turns on the Liquid Crystal display
Give the characteristic of the operator when it turns off the Liquid Crystal display
Give the characteristic of the operator when it displays the blinking of liquid crystal display cursor
Give the characteristic of the operator when it turns off the blinking Liquid Crystal display cursor
Give the characteristic of the operator when it allows to shift liquid crystal display from left to right
Give the characteristic of the operator when it allows to shift liquid crystal display from right to left
What are functions of light-emitting diode display?
Give the characteristic of the operator when it clears the screen and set start position to top left corner of light-emitting diode display
Give the characteristic of the operator when it sets light-emitting diode display to normal mode (i.e non-inverse mode)
Give the characteristic of the operator when it sets addressing mode to Page Mode
Give the characteristic of the operator when it prints the strings on the light-emitting diode display
Give the characteristic of the operator when it prints the numbers on the light-emitting diode display
Give the characteristic of the operator when it sets addressing mode to Horizontal Mode of the light-emitting diode display
Give the characteristic of the operator when it prints the numbers on the light-emitting diode display
Give the characteristic of the operator when it initializes Oscar light-emitting diode display
Give the characteristic of the operator when it sets the properties of Horizontal Scroll
Основание встроенное системное программирование
C/C ++
Разработка драйверов
Разработка программно-аппаратных средств
Разработка аудио и видео кодеков
Разработка базовых систем ввода/вывода (BIOS)
Разработка эскиза
Проектирование микроконтроллеров
Проектирование микропроцессоров
Проектирование экранных шрифтов
Проектирование системных файлов
Дизайн загрузочные файлы
Разработка операционных систем
Работа с дисками
Работа с файлами
Обработка шестнадцатеричных и двоичных файлов
Структура:
Структуры контактных сигналов
A0-A3 ...
Адрес шины редко представлены в виде двоичной системе, однако. Они почти всегда представлены в шестнадцатеричной системе с префиксом 0x. Исключение на схеме. Отдельные линии часто обращается и помечены аббревиатуры с использованием капитала, как показано выше.
Также аналоговые выводы могут быть использованы идентично цифровых выводов, используя псевдонимы A0 (для аналогового входа 0), А1, и так далее. Например, код будет выглядеть следующим образом, чтобы установить аналоговый вход 0 к выходу, и установить его HIGH:
Примеры:
pinMode (A0, OUTPUT); //
pinMode (A1, OUTPUT); //
pinMode (A2, OUTPUT); //
pinMode (A3, OUTPUT); //
pinMode (A4, OUTPUT); //
pinMode (A5, OUTPUT); //
digitalWrite (A0, HIGH); // Установить подтягивающий на аналоговый контактный адрес 0
digitalWrite (A1, HIGH); // Установить подтягивающий на аналоговый контактный адрес 1
digitalWrite (A2, HIGH); // Установить подтягивающий на аналоговый контактный адрес 2
digitalWrite (A3, HIGH); // Установить подтягивающий на аналоговый контактный адрес 3
digitalWrite (A4, HIGH); // Установить подтягивающий на адрес аналогового пин 4
digitalWrite (A5, HIGH); // Установить подтягивающий на аналоговый контактный адрес 5
INT pushbutton1 = digitalRead (A0); //
INT pushbutton2 = digitalRead (A1); //
INT pushbutton3 = digitalRead (А2); //
INT pushbutton4 = digitalRead (A3); //
INT pushbutton5 = digitalRead (A4); //
INT pushbutton6 = digitalRead (А5); //
если (pushbutton1 == "A" == 1) {digitalWrite (A0, HIGH); // Сделать что-то здесь}
если (pushbutton2 == "B" == 1) {digitalWrite (A1, HIGH); // Сделать что-то здесь}
если (pushbutton3 == "C" == 1) {digitalWrite (A2, HIGH); // Сделать что-то здесь}
если (pushbutton4 == "D" == 1) {digitalWrite (A3, HIGH); // Сделать что-то здесь}
если (pushbutton5 == "E" == 1) {digitalWrite (A4, HIGH); // Сделать что-то здесь}
если (pushbutton6 == "F" == 1) {digitalWrite (A5, HIGH); // Сделать что-то здесь}
D0-D3 ...
Шина данных. Эти линии являются активными ВЫСОКИЙ и удерживаются на высоком сопротивлении до последнего допустимого уровня во время прерывания признать и локальную шину "держать признают" или "последовательность" грант
Примеры:
pinMode (D0, OUTPUT); //
pinMode (D1, OUTPUT); //
pinMode (D2, OUTPUT); //
pinMode (D3, OUTPUT); //
pinMode (D4, OUTPUT); //
pinMode (D5, OUTPUT); //
digitalWrite (D0, HIGH); // Установить подтягивающий на аналоговых данных пин 0
digitalWrite (D1, HIGH); // Установить подтягивающий на аналоговых данных PIN 1
digitalWrite (D2, HIGH); // Установить подтягивающий на аналоговых данных Контакт 2
digitalWrite (D3, HIGH); // Установить подтягивающий на аналоговых данных Контакт 3
digitalWrite (D4, HIGH); // Установить подтягивающий на аналоговых данных Контакт 4
digitalWrite (D5, HIGH); // Установить подтягивающий на аналоговых данных Контакт 5
INT pushbutton1 = digitalRead (D0); //
INT pushbutton2 = digitalRead (D1); //
INT pushbutton3 = digitalRead (D2); //
INT pushbutton4 = digitalRead (D3); //
INT pushbutton5 = digitalRead (D4); //
INT pushbutton6 = digitalRead (D5); //
IRQ0-IRQ3 ...
В компьютере, запрос на прерывание (или IRQ) представляет собой аппаратный сигнал, посылаемый на процессор, который временно останавливает выполнение программы и позволяет специальную программу, обработчик прерывания, чтобы запустить вместо этого. Аппаратные прерывания используются для обработки событий, таких как получение данных от модема или сетевой карты, нажатия клавиш или движения мыши.
Примеры:
pinMode (IRQ0, OUTPUT); //
pinMode (IRQ1, OUTPUT); //
pinMode (IRQ2, OUTPUT); //
pinMode (IRQ3, OUTPUT); //
pinMode (IRQ4, OUTPUT); //
pinMode (IRQ5, OUTPUT); //
digitalWrite (IRQ0, HIGH); // Установить подтягивающий по запросу аналоговый вход прерывания 0
digitalWrite (IRQ1, HIGH); // Установить подтягивающий по запросу прерывания аналогового пин 1
digitalWrite (IRQ2, HIGH); // Установить подтягивающий по запросу прерывания аналоговый вход 2
digitalWrite (IRQ3, HIGH); // Установить подтягивающий по запросу прерывания аналогового пин 3
digitalWrite (IRQ4, HIGH); // Установить подтягивающий по запросу аналоговый вход прерывания 4
digitalWrite (IRQ5, HIGH); // Установить подтягивающий по запросу прерывания аналогового пин 5
INT pushbutton1 = digitalRead (IRQ0); //
INT pushbutton2 = digitalRead (IRQ1); //
INT pushbutton3 = digitalRead (IRQ2); //
INT pushbutton4 = digitalRead (IRQ3); //
INT pushbutton5 = digitalRead (IRQ4); //
INT pushbutton6 = digitalRead (IRQ5); //
Мастер PIC
IRQ 0 - системный таймер (не может быть изменен);
IRQ 1 - контроллер клавиатуры (не может быть изменен);
IRQ 2 - каскадные сигналы от IRQ8- IRQ15 (любые устройства, настроенные для использования IRQ 2 будет на самом деле использовать IRQ 9);
IRQ 3 - контроллер последовательного порта для последовательного порта 2 (совместно с последовательным портом 4, если он присутствует);
IRQ 4 - контроллер последовательного порта для последовательного порта 1 (совместно с последовательным портом 3, если имеется);
IRQ 5 - параллельный порт 2 и 3 или звуковая карта;
IRQ 6 - гибкий контроллер диска;
IRQ 7 - параллельный порт 1. Он используется для принтеров или для любого параллельного порта, если принтер нет. Она также может быть потенциально совместно с расходами вторичной звуковой карты с тщательного управления порта.
Подчиненный PIC
8 IRQ - часы реального времени (RTC);
IRQ 9 - Расширенный интерфейс конфигурации и питания (ACPI) управления системой прерываний на чипсетах Intel. Другие производители чипсетов могут использовать другое прерывание для этой цели, или сделать его доступным для использования периферийных устройств (любых устройств, настроенных на использование IRQ 2 будет на самом деле использовать IRQ 9);
IRQ 10 - Прерывание остается открытым для использования периферийных устройств (открытое прерывание / доступно, SCSI или NIC);
IRQ 11 - Прерывание остается открытым для использования периферийных устройств (открытое прерывание / доступно, SCSI или NIC);
IRQ 12 - мышь на / 2 разъема PS;
IRQ 13 - CPU сопроцессор или интегрированный блок с плавающей запятой или прерывание между процессором (использование зависит от ОС);
IRQ 14 - первичный канал ATA (интерфейс ATA обычно служит жестких дисков и приводов CD);
IRQ 15 - вторичный канал ATA.
TXD
Передача данных (выходной вывод данных для USART). Когда USART передатчик включен, этот вывод сконфигурирован как выход, независимо от значения DDD1.
Примеры:
pinMode (TXD, INPUT); //
pinMode (TXD, OUTPUT); //
digitalWrite (TXD, HIGH); //
digitalWrite (TXD, LOW); //
digitalRead (TXD, HIGH); //
digitalRead (TXD, LOW): //
RXD
Прием данных (ввод пин-данных для USART). Когда приемник USART включен этот вывод сконфигурирован как вход, независимо от значения DDD0. Когда УСАПП заставляет эту булавку, чтобы быть входом, нагрузочный по-прежнему может управляться битом PORTD0.
Примеры:
pinMode (RXD, INPUT); //
pinMode (RXD, OUTPUT); //
digitalWrite (RXD, HIGH); //
digitalWrite (RXD, LOW); //
digitalRead (RXD, HIGH); //
digitalRead (RXD, LOW): //
SDA
Двухпроводной последовательной передачи данных интерфейса: Когда бит Twen в TWCR установлен (один), чтобы включить двухпроводной последовательный интерфейс; контактный вход / выход отключен от порта и становится последовательного ввода / вывода данных заколку для двухпроводного последовательного интерфейса. В этом режиме есть фильтр шип на булавку, чтобы подавить шипы короче, чем 50 нс от входного сигнала и вывод управляется открытым драйвером сливного с ограничением скорости нарастания выходного напряжения.
Примеры:
pinMode (SDA, INPUT); //
pinMode (SDA, OUTPUT); //
digitalWrite (SDA, HIGH); //
digitalWrite (SDA, LOW); //
неподписанных INT digitalPotentiometerPin = digitalRead (SDA); //
INT digitalPotentiometerPin = digitalRead (SDA); //
SCL
Двухпроводной последовательный интерфейс Clock: Когда бит Twen в TWCR установлен (один), чтобы включить двухпроводной последовательный интерфейс; контактный отключен от порта и становится входной / выходной контакт последовательного тактового сигнала для двухпроводного последовательного интерфейса. В этом режиме есть фильтр выводов на булавку, чтобы подавить шипы короче, чем 50 нс от входного сигнала и вывод управляется открытым драйвером сливного с ограничением скорости нарастания выходного напряжения.
Примеры:
pinMode (SCL, INPUT); //
pinMode (SCL, OUTPUT); //
digitalWrite (SCL, HIGH); //
digitalWrite (SCL, LOW); //
неподписанных INT digitalPotentiometerPin = digitalRead (SCL); //
неподписанных INT digitalPotentiometerPin = digitalRead (SCL); //
С.С.
Bus Master Slave Выберите
Примеры:
pinMode (SS, INPUT); //
pinMode (SS, OUTPUT); //
digitalWrite (SS, HIGH); //
digitalWrite (SS, LOW); //
неподписанных INT secureDigitPin = digitalRead (СС); //
INT secureDigitPin = digitalRead (СС); //
MISO
SPI Bus Master Input / Slave Output
Примеры:
pinMode (MISO, INPUT); //
pinMode (MISO, OUTPUT); //
digitalWrite (MISO, HIGH); //
digitalWrite (MISO, LOW); //
неподписанных INT secureDigitPin = digitalRead (MISO); //
INT secureDigitPin = digitalRead (MISO); //
MOSI
SPI Bus Master Output / Slave Input
Примеры:
pinMode (MOSI, INPUT); //
pinMode (MOSI, OUTPUT); //
digitalWrite (MOSI, HIGH); //
digitalWrite (MOSI, LOW); //
неподписанных INT secureDigitPin = digitalRead (MOSI); //
INT secureDigitPin = digitalRead (MOSI); //
SCK
Входная частота Bus Master Clock
Примеры:
pinMode (SCK, INPUT); //
pinMode (SCK, OUTPUT); //
digitalWrite (SCK, HIGH); //
digitalWrite (SCK, LOW); //
неподписанных INT secureDigitPin = digitalRead (SCK); //
INT secureDigitPin = digitalRead (SCK); //
INT
Прерывание штифт может служить в качестве внешнего источника прерываний.
Примеры:
pinMode (INT, INPUT); //
pinMode (INT, OUTPUT); //
digitalWrite (INT, HIGH); //
digitalWrite (INT, LOW); //
неподписанных INT relayPin = digitalRead (INT); //
INT relayPin = digitalRead (INT); //
СБРОС
Сброс PIN-кода: Когда RSTDISBL предохранитель запрограммирован, этот вывод функционирует как обычный вход / выходной контакт, а часть придется полагаться на сброса по включению питания и Brown-аут сброса в качестве его источников сброса.
Когда RSTDISBL Предохранитель незапрограммированными, схема сброса подключен к контакту, а штифт не может быть использован в качестве входного / выходного вывода.
RD
Внешняя память данных строб чтения
Примеры:
pinMode (RD, INPUT); //
pinMode (RD, OUTPUT); //
digitalWrite (RD, HIGH); //
digitalWrite (RD, LOW); //
неподписанных INT relayPin = digitalRead (RD); //
INT relayPin = digitalRead (RD); //
WR
Внешняя память данных записывает стробоскоп
Примеры:
pinMode (WR, INPUT); //
pinMode (WR, OUTPUT); //
digitalWrite (WR, HIGH); //
digitalWrite (WR, LOW); //
неподписанных INT sramPin = digitalRead (WR); //
INT sramPin = digitalRead (WR); //
STB
вход Строб является "низкий" на этом входе нагрузок
данные во входной защелки.
Примеры:
pinMode (STB, INPUT); //
pinMode (STB, OUTPUT); //
digitalWrite (STB, HIGH); //
digitalWrite (STB, LOW); //
неподписанных INT relayPin = digitalRead (STB); //
INT relayPin = digitalRead (STB); //
Переменные:
Функции:
Literatures:
PT6958, LED Driver IC, Princeton Technology Corp.
PT6311, VFD Driver/Controller IC, Princeton Technology Corp.
Ю.В. Китаев, ОСНОВЫ ПРОГРАММИРОВАНИЯ МИКРОКОНТРОЛЛЕРОВ ATMEGA128 И 68HC908, ИТМО Санкт-Петербург, 2007
The C programming language Brian W. Kernighan Dennis M.Ritchie
Webs:
https://www.arduino.cc/en/Reference/HomePage
https://github.com/ynh/cpp-to-assembly
http://www.tutorialspoint.com/cplusplus/
https://learn.adafruit.com/
http://www.nongnu.org/avr-libc/user-manual/modules.html
https://assembly.ynh.io/
Library index:
It is putting before void setup(){}, instead of PIN to write pin input-output signal
int radioReceiverPin = PIN; //
int radioTransmitterPin = PIN; //
int digital_to_analog_converter_PIN = PIN; //
int digital_to_analog_converter_PIN = PIN; //
int pushbuttonPin = PIN; //
int OzOLED_PIN = PIN; //
int OzOLED_PIN = PIN; //
int secureDigitCardPin_PIN = PIN; //
int secureDigitCardPin_PIN = PIN; //
int secureDigitCardPin_PIN = PIN; //
int secureDigitCardPin_PIN = PIN; //
int pcUsbPlusPin = PIN; //
int pcUsbMinusPin = PIN; //
int driveUsbPlusPin = PIN; //
int driveUsbMinusPin = PIN; //
int RelayPIN = PIN; //
int rows[] = {PINS};// defining row pins of keypad connected to …
int columns[] = {PINS};//defining column pins of keypad connected to …
int analogValueMax = VOLTAGE; //
int analogValueMin = VOLTAGE; //
int centralProcessorUnit_PIN = PIN; //
int audioCodec_PIN = PIN; //
int shiftRegister_PIN = PIN; //
int readOnlyMemory_PIN = PIN; //
int randomAccessMemory_PIN = PIN; //
int lightPin = PIN; //
int tempPin = PIN; //
int variableResistorPin = PIN; //
It is putting within brackets of void loop(){}, instead of PIN to write pin input-output signal
int radioReceiverPin = digitalRead(PIN); //
int radioTransmitterPin = digitalRead(PIN); //
int digital_to_analog_converter_PIN = digitalRead(PIN); //
int digital_to_analog_converter_PIN = digitalRead(PIN); //
int pushbuttonPin = digitalRead(PIN); //
int OzOLED_PIN = digitalRead(PIN); //
int OzOLED_PIN = digitalRead(PIN); //
int secureDigitCardPin_PIN = digitalRead(PIN); //
int secureDigitCardPin_PIN = digitalRead(PIN); //
int secureDigitCardPin_PIN = digitalRead(PIN); //
int secureDigitCardPin_PIN = digitalRead(PIN); //
int pcUsbPlusPin = digitalRead(PIN); //
int pcUsbMinusPin = digitalRead(PIN); //
int driveUsbPlusPin = digitalRead(PIN); //
int driveUsbMinusPin = digitalRead(PIN); //
int RelayPIN = digitalRead(PIN); //
int analogValueMax = digitalRead(PIN); //
int analogValueMin = digitalRead(PIN); //
int centralProcessorUnit_PIN = digitalRead(PIN); //
int audioCodec_PIN = digitalRead(PIN); //
int shiftRegister_PIN = digitalRead(PIN); //
int readOnlyMemory_PIN = digitalRead(PIN); //
int randomAccessMemory_PIN = digitalRead(PIN); //
int lightPin = digitalRead(PIN); //
int tempPin = digitalRead(PIN); //
int variableResistorPin = digitalRead(PIN); //
It is putting before void setup(){}, instead of PIN to write pin input-output signal
unsigned int radioReceiverPin = PIN; //
unsigned int radioTransmitterPin = PIN; //
unsigned int digital_to_analog_converter_PIN = PIN; //
unsigned int digital_to_analog_converter_PIN = PIN; //
unsigned int pushbuttonPin = PIN; //
unsigned int OzOLED_SDA = PIN; //
unsigned int OzOLED_SCL = PIN; //
unsigned int secureDigitCardPin_PIN = PIN; //
unsigned int secureDigitCardPin_PIN = PIN; //
unsigned int secureDigitCardPin_PIN = PIN; //
unsigned int secureDigitCardPin_PIN = PIN; //
unsigned int pcUsbPlusPin = PIN; //
unsigned int pcUsbMinusPin = PIN; //
unsigned int driveUsbPlusPin = PIN; //
unsigned int driveUsbMinusPin = PIN; //
unsigned int RelayPIN = PIN; //
unsigned int analogValueMax = VOLTAGE; //
unsigned int analogValueMin = VOLTAGE; //
unsigned int centralProcessorUnit_PIN = PIN; //
unsigned int audioCodec_PIN = PIN; //
unsigned int shiftRegister_PIN = PIN; //
unsigned int readOnlyMemory_PIN = PIN; //
unsigned int randomAccessMemory_PIN = PIN; //
unsigned int lightPin = PIN; //
unsigned int tempPin = PIN; //
unsigned int variableResistorPin = PIN; //
