Hacker Public Radio

HPR3818: nop test redux


Listen Later

nop redux
This is the updated code
-logicprobe
marker -logicprobe
variable Compare
variable Count
$23 constant PINB
$24 constant DDRB
$25 constant PORTB
$100 constant PINH
$101 constant DDRH
$102 constant PORTH
$a0 constant TCCR4A
$a1 constant TCCR4B
$a8 constant OCR4A
$b0 constant TCCR2A
$b1 constant TCCR2B
$b3 constant OCR2A
$2c constant PINE
$2d constant DDRE
$2e constant PORTE
$6a constant EICRB
$3d constant EIMSK
: ext4.irq ( -- ) Count @ 1+ Count ! ;i
: logicprobe.init ( -- )
tone generatoed through timer2
%0001.0000 DDRB mset d10, pb4
%0100.0010 TCCR2A c! use OC2A, ctc mode
$ff OCR2A c! compare falue
%0 DDRE c! e input
%0000.0010 EICRB mset falling edge
['] ext4.irq #6 int! attach interrupt
;
helper words
: open.gate ( -- ) 0 Count ! %0001.0000 EIMSK mset ;
: close.gate ( -- ) %0001.0000 EIMSK mclr ;
tone stuff
: high.tone ( -- ) %0000.0100 TCCR2B c! 750 ms 0 TCCR2B c! ;
: low.tone ( -- ) %0000.0110 TCCR2B c! 750 ms 0 TCCR2B c! ;
: alt.tone ( -- )
3 for
%0000.0100 TCCR2B c! 150 ms 0 TCCR2B c!
150 ms
%0000.0110 TCCR2B c! 150 ms 0 TCCR2B c!
150 ms
next
;
: process.data ( -- )
Count @ 1-
Count !
Count @ 0 > if
cr ." freq=" 10 * .
cr ." pulse"
alt.tone sound output
else
%0001.0000 PINE mtst if
cr ." high"
high.tone sound output
else
cr ." low"
low.tone sound output
then then
;
: wait 100 ms ;
: sample ( -- ) open.gate wait close.gate process.data ;
words called at the forth command line to do the test
demo tones
low.tone
high.tone
alt.tone
the test
sample a stop clocked
start.clock
sample
a0 line
sample
stop.clock and sample a0
stop.clock
sample
reset the z80 and single step probing the m1 signal
reset
step
step
step
step
step
step
run
step sample
step sample
step sample
step sample
sample
if its jammed hit it, if it breaks it needed replacing anyway
...more
View all episodesView all episodes
Download on the App Store

Hacker Public RadioBy Hacker Public Radio

  • 4.2
  • 4.2
  • 4.2
  • 4.2
  • 4.2

4.2

34 ratings


More shows like Hacker Public Radio

View all
The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

289 Listeners

Defensive Security Podcast - Malware, Hacking, Cyber Security & Infosec by Jerry Bell and Andrew Kalat

Defensive Security Podcast - Malware, Hacking, Cyber Security & Infosec

373 Listeners

LINUX Unplugged by Jupiter Broadcasting

LINUX Unplugged

268 Listeners

SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast) by Johannes B. Ullrich

SANS Internet Stormcenter Daily Cyber Security Podcast (Stormcast)

653 Listeners

Curious Cases by BBC Radio 4

Curious Cases

829 Listeners

The Strong Towns Podcast by Strong Towns

The Strong Towns Podcast

422 Listeners

Late Night Linux by The Late Night Linux Family

Late Night Linux

164 Listeners

Darknet Diaries by Jack Rhysider

Darknet Diaries

8,044 Listeners

Cybersecurity Today by Jim Love

Cybersecurity Today

181 Listeners

CISO Series Podcast by David Spark, Mike Johnson, and Andy Ellis

CISO Series Podcast

189 Listeners

TechCrunch Daily Crunch by TechCrunch

TechCrunch Daily Crunch

42 Listeners

Strict Scrutiny by Crooked Media

Strict Scrutiny

5,799 Listeners

2.5 Admins by The Late Night Linux Family

2.5 Admins

98 Listeners

Cyber Security Headlines by CISO Series

Cyber Security Headlines

139 Listeners

What the Hack? by DeleteMe

What the Hack?

221 Listeners