Professional Documents
Culture Documents
Table of Contents:
General……………………………………6,7
Analog Discovery ……………………9
Analog discovery
SPI r2 c
Lat
Port
http://ww1.microchip.com/downloads/en/devicedoc/61120d.pdf
ADC:
1)resolution//sampling rate
0 to 5 2.5/5 = x/4096
TTL vs CMOS
Jumpcontable
Irvineapp
Debug flags
http://learn.parallax.com/support/reference/using-propeller-activity-board
http://learn.parallax.com/support/reference/using-propeller-activity-board
https://projects.raspberrypi.org/en/pathways/getting-started-with-raspberry-pi
https://www.microchip.com/mplab/mplab-x-ide
Quiz 0:
Red red red red gold series with orange orange orange gold = 35.2kohms
Reference Table TTL LOW TTL HIGH CMOS LOW CMOS HIGH
Input 0-0.8 2-5 0-1.5 3.5-5
Output 0-0.5 2.7-5 Essentially 0 Essentially 5
General:
How many bits' address is required for a computer with n bytes of memory?
you need log2(n) bits to address n bytes. For example, you can store 256 different values in
an 8 bit number, so 8 bits can address 256 bytes. 210 = 1024, so you need 10 bits to
address every byte in a kilobyte. Likewise, you need 20 bits to address every byte in a
megabyte, and 30 bits to address every byte in a gigabyte. 232 = 4294967296, which is the
number of bytes in 4 gigabytes, so you need a 32 bit address for 4 GB of memory.
https://en.wikipedia.org/wiki/Binary-coded_decimal
BCD
Example Hand Assembely
Strings Attached Program:
Page 58, 80
Title strings_attached
org 100h
start: mov ah,0
int 16h
mov cx,ax
and cx, 000fh
mov ah, 0eh
int 10h
cld
mov ax, 0e0dh
int 10h
mov ax, 0e0ah
int 10h
mov si, offset shopa
mov di, offset shopb
repz cmpsb
jz good
mov dx, offset notso
jmp putout
org 200h
shopb db "SHOPPING",0dh
cseg ends
end start
Subroutines demo
.286
cseg segment 'code'
assume cs:cseg, ds:cseg, ss:cseg, es:cseg
org 100h
start: push sp
call subr1
mov ah, 4ch
int 21h
subr1: push sp
call subr2
ret
subr2: push sp
pusha
pop dx
popa
ret
cseg ends
end start
Analog Discovery Functions:
https://analogdiscovery.com/?utm_source=google_search&utm_medium=ppc&utm_campaign=AD2_pr
o_oscilloscope_customers&utm_content=interest_2&gclid=Cj0KCQjw19DlBRCSARIsAOnfRei8WRgYW7b
X1KGoLnFeJiCkT_Q5KeV36TefkxLiFNaByAYJ2tVan20aAsXEEALw_wcB
https://www.studocu.com/en-us/document/california-state-university-sacramento/computer-
interfacing/past-exams/compilation-of-exams/1867981/view
Lecture Notes:
Week 2:
Little Endian : LSB to MSB
Big Endian : MSB to LSB
AX, Accumulator BX, Base
CX, Count DX, Data
Week 5:
BIOS built in operating system
00 video mode
02 cursor position
0E writes character in TTY mode
Week 7:
20bit Physical memory address (external to processor)
and is the addition of the Offset and segment base address.
The Logical address is described by the segment address and Offset, ( like CS: IP )
To find Physical address, shift left segment base by 4 bits and add to offset (see above). Triebel page 38
Week 9:
Load string Word, LODSW , page 192 of text.
Use:
LODSW
moves the word pointed to by register SI to register AX. SI is then incremented (when the direction flag
is reset) otherwise decrement by 2 to point at the next word in the string.
LODSW saves instructions like
Mov AX, [SI]
Add SI, 2
Loop instructions
POP, PUSH
Parallel / serial IO
RS232
https://en.wikipedia.org/wiki/RS-232
Connection between DTE (data terminal equipment) and DCE (data circuit-terminating equipment or
data communication equipment)
Lower transmission speed short max cable length large voltage sing large standard connectors no
multipoint capability and limited multidrop capability. USB has displaced RS232
0= +3 to +15 V 1 = -15 to -3 V
RS422
https://en.wikipedia.org/wiki/RS-422
RS423
https://en.wikipedia.org/wiki/RS-423
https://www.eetimes.com/document.asp?doc_id=1276974
https://softwareengineering.stackexchange.com/questions/178921/how-many-bits-address-is-required-
for-a-computer-with-n-bytes-of-memory
If you wanted to examine the data from a 12C bus what tool would you use on analog discovery
functions
Polling
1D72:010F 7D18 JGE 0128 How many bytes in decimal will the processor jump if the conditions for a
jump are met?
Addressing modes
Precompiler statemetns
10 bit resolution ADC what max value will be returned from ADC
wfhat is the advantage of C Language over Assembly Language?