Novo

Forum kao aplikacija na telefonu

Dodajte forum na početni ekran i koristite ga kao aplikaciju, sa menijem na dnu ekrana.

  • 21 odgovor
  • 5.454 pregleda

Najnovija ↓

Re: Brzina serial.read? 26.11.2019. u 01:29 · pre 84 meseca #21
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" :)
Potpis
Site about Software Defined Radio – SDR
http://yu3ma.net/
https://github.com/yu3ma
On-line LM317 kalkulator
Re: Brzina serial.read? 04.12.2019. u 19:08 · pre 84 meseca #22
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.
Odgovori
Prijavite se da biste odgovorili u ovoj temi.PrijavaRegistracija

Premeštanje teme