Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

Brzina serial.read?

[es] :: Elektronika :: Mikrokontroleri :: Brzina serial.read?

Strane: 1 2

[ Pregleda: 2634 | Odgovora: 21 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

mikikg
System administrator
Srbija

Član broj: 3779
Poruke: 5059
*.dynamic.sbb.rs.

Sajt: yu3ma.net


+505 Profil

icon Re: Brzina serial.read?26.11.2019. u 00:29 - pre 52 meseci
Citat:
flighter_022:
Citat:
mikikg:
Veruj mi da sam se setio PICK & POKE na Spectrumu




PEEK & POKE :)

Omatorilo se, hehehe.



Citat:
In computing, PEEK and POKE are commands used in some high-level programming languages for accessing the contents of a specific memory cell referenced by its memory address.[1][2] These commands are particularly associated with the BASIC programming language, though some other languages such as Pascal and COMAL, have these commands as well. These commands are comparable in their roles to pointers in the C language and some other programming languages.

The PEEK and POKE commands were conceived in early personal computing systems to serve a variety of purposes, especially for modifying special memory-mapped hardware registers to control particular functions of the computer such as the input/output peripherals. Alternatively programmers might use these commands to copy software or even to circumvent the intent of a particular piece of software (e.g. manipulate a game program to allow the user to cheat). Today it is unusual to control computer memory at such a low level using a high-level language like BASIC. As such the notions of PEEK and POKE commands are generally seen as antiquated.


Hehe, pa i nisu "antiquated", sad su "re-born" :)
Site about Software Defined Radio – SDR
http://yu3ma.net/
https://github.com/yu3ma
On-line LM317 kalkulator
 
Odgovor na temu

korak
Nis

Član broj: 125522
Poruke: 622
*.exe-net.net.



+7 Profil

icon Re: Brzina serial.read?04.12.2019. u 18:08 - pre 52 meseci
Citat:
mikikg:
Hehe, niko nije naveo koji je MCU u pitanju, samo je receno Arduino, i Atmel/MCP SAM3 moze da ide pod Arduino, isto kao sto moze i STM32 i jos gomila drugih koji imaju DMA ... ;)

Atmega328 ko to jos koristi pored zivih ARM-ova :)


Nije neophodno da postoji DMA.

Kada se pokrene interrupt na događaj: primljen karakter, servisna rutina pročita karakter i smesti u kružni bafer preko pointera namenjenog SCI-a modulu. Drugim pointerom se čita kružni bafer i pomera napred. Kružni bafer je prazan ako oba pointera imaju istu vrednost.

U glavnoj petlji se proveri da li je k. bafer prazan, i ako nije čita se sve dok ne postane prazan. Pročitani karakteri se smeštaju u neki niz i služe za dalju analizu u programu.
 
Odgovor na temu

[es] :: Elektronika :: Mikrokontroleri :: Brzina serial.read?

Strane: 1 2

[ Pregleda: 2634 | Odgovora: 21 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.