summaryrefslogtreecommitdiff
path: root/graphics/circuit_macros/examples/Byte.m4
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /graphics/circuit_macros/examples/Byte.m4
Initial commit
Diffstat (limited to 'graphics/circuit_macros/examples/Byte.m4')
-rw-r--r--graphics/circuit_macros/examples/Byte.m440
1 files changed, 40 insertions, 0 deletions
diff --git a/graphics/circuit_macros/examples/Byte.m4 b/graphics/circuit_macros/examples/Byte.m4
new file mode 100644
index 0000000000..863e3145fd
--- /dev/null
+++ b/graphics/circuit_macros/examples/Byte.m4
@@ -0,0 +1,40 @@
+.PS
+# Byte.m4
+gen_init
+
+boxht = 0.2
+boxwid = 3.8
+
+define leftlabel { {"{\sf $1}" at last box.w ljust} }
+
+ifdpic(`
+down_
+Lab[0]: box; leftlabel( B0STDISBL (reset pin is enabled) )
+Lab[1]: box; leftlabel( WDTON (WDT not always on) )
+Lab[2]: box; leftlabel( SPIEN (allow serial programming) )
+Lab[3]: box; leftlabel( CKOPT (full output swing) )
+Lab[4]: box; leftlabel( EESAVE (don\char39{}t preserve EEPB0OM over chip erase))
+Lab[5]: box; leftlabel( BOOTSZ1 )
+Lab[6]: box; leftlabel( BOOTSZ0 )
+Lab[7]: box; leftlabel( BOOTB0ST (boot reset vector at 0x0000) )
+
+boxwid = boxht
+left_
+B0:box "\sf 1" with .e at Lab[0].nw + (0.75,0.5)
+ box "\sf 0"
+ box "\sf 0"
+ box "\sf 1"
+ box "\sf 0"
+ box "\sf 0"
+ box "\sf 1"
+ box "\sf 1"
+ box wid 2*boxht "\sf 0xc9"
+
+for i=0 to 7 do {
+ spline -> ht arrowht*0.7 from B0.s-(i*boxht,0) down boxht/4 \
+ then to Lab[0].nw-((i+1)*boxht/2,0) \
+ then down Lab[0].nw.y-Lab[i].y then to Lab[i].w
+ }',
+`box wid 1 ht 0.75 "Byte.m4" "requires" "dpic"')
+
+.PE