Index

 

_reset, 5859

_set, 5758

1 × 2 decoder, 264265

1 × 2 decoder with active low outputs, 265266

1 × 2 decoder with enable input, 266268

1 × 2 decoder with enable input and active low outputs, 268269

1 × 2 DMUX, 243245

1 × 2 DMUX with enable input, 244, 246247

1 × 4 DMUX, 245, 247249

1 × 4 DMUX with enable input, 246, 249251

1 × 8 DMUX, 251254

1 × 8 DMUX with enable input, 252, 255257

1-bit (Boolean) variable definitions, 1619

1-to-n demultiplexers, 243244

2 × 1 MUX, 225227

2 × 1 MUX with enable input, 226, 228229

2 × 4 decoder, 269271

2 × 4 decoder with active low outputs, 270273

2 × 4 decoder with enable input, 273275

2 × 4 decoder with enable input and active low outputs, 273277

3 × 8 decoder, 276279

3 × 8 decoder with active low outputs, 280282

3 × 8 decoder with enable input, 280, 283285

3 × 8 decoder with enable input and active low outputs, 283, 286288

4 × 1 MUX, 228230

4 × 1 MUX with enable input, 228, 231232

4 × 2 priority encoder, 296298

4 × 2 priority encoder with enable input, 298299

4PDT switch, 1

74HC/LS165 registers, 1, 1213

variable definitions, 17

8 × 1 MUX, 232234, 236

8 × 1 MUX with enable input, 233, 235, 237238

8 × 3 priority encoder, 300303

8 × 3 priority encoder with enable input, 303306

8-bit down counter (CTD_8), 130132

8-bit off-delay timer (TOF_8), 105107

8-bit on-delay timer (TON_8), 98100, 102104

8-bit oscillator timer (TOS_8), 112115

8-bit pulse timer (TP_8), 108111

8-bit up counter (CTU_8), 126129

8-bit up/down counter (CTUD_8), 133136

A

ADD, 163164

and, 4445

and_not, 4647

Arithmetical functions, 163

Arithmetical macros

decR, 169170

examples for, 170174

incR, 168169

R1addR2, 164165

R1subR2, 165167

RaddK, 165166

RsubK, 167168

B

BANK 0, 1113

allocation of edge detection variables in, 68

allocation of variables for counter macros in, 123124

allocation of variables for timers in, 9799

BANK macros, 1315

bI0 register, 14

bI1 register, 15

Buttons, 2223

C

clock input (C), 7778

clock out pin, 4, 9

clock_in, 1, 9

clock_out, 22

Comparison macros

examples for, 158162

R_EQ_K, 153154

R_GE_K, 151153

R_GT_K, 151152

R_LE_K, 155156

R_LT_K, 154155

R_NE_K, 157158

R1_EQ_R2, 146147

R1_GE_R2, 144146

R1_GT_R2, 144145

R1_LE_R2, 148149

R1_LT_R2, 147148

R1_NE_R2, 150151

Contact and relay-based macros

_reset, 5859

_set, 5758

and, 4445

and_not, 4647

examples for, 5965

in_out, 5455

initialize, 3132

inv_out, 5657

ld, 38

ld_not, 3940

nand, 4748

nor, 4244

not, 40

or, 4142

or_not, 4243

out, 5153

out_not, 5355

send_inputs, 3334

xnor, 49, 5152

xor, 4749

xor_not, 4950

Contact bouncing, 11

eliminating problem of in PIC16F648A-based PLC, 2231

Contacts, 2223

Counter macros

CTD_8, 130132

CTU_8, 126129

CTUD_8, 133136

definition of status bits of, 125

examples for, 136142

CPU board, 1, 68

photograph, 3

schematic diagram of, 2

CPU section, 1

CTD, 129130

CTD_8, 130132

CTU, 124126

CTU_8, 126129

CTUD_8, 133136

D

D latch with active high enable (latch1), 7273

D latch with active low enable (latch0), 72, 74

Data comparison, 143144

data in pin, 1

data out pin, 9

Data transfer, 121123

data_out, 22

dbncr0, 2530

dbncr1, 3031

DBNCRRED0, 28

Debouncer macros, 1314, 2531, 32

Debouncing, 23

DEC, 163

Decimal to BCD priority encoder, 303

Decimal to BCD priority encoder with enable input, 304, 307, 310312

Decimal to binary coded decimal (BCD) priority encoder, 307309

decod_1_2, 264265

decod_1_2_AL, 265266

decod_1_2_E, 266268

decod_1_2_E_AL, 268269

decod_2_4, 269271

decod_2_4_AL, 270273

decod_2_4_E, 273275

decod_2_4_E_AL, 273277

decod_3_8, 276279

decod_3_8_AL, 280282

decod_3_8_E, 280, 283285

decod_3_8_E_AL, 283, 286288

Decoder macros, examples for, 289294

Decoders, 263264

decR, 169170

Decrement functions, 163

Demultiplexer macros

decod_1_2, 264265

decod_1_2_AL, 265266

decod_1_2_E, 266268

decod_1_2_E_AL, 268269

decod_2_4, 269271

decod_2_4_AL, 270273

decod_2_4_E, 273275

decod_2_4_E_AL, 273277

decod_3_8, 276279

decod_3_8_AL, 280282

decod_3_8_E, 280, 283285

decod_3_8_E_AL, 283, 286288

Dmux_1_2, 243245

Dmux_1_2_E, 244, 246247

Dmux_1_4, 245, 247249

Dmux_1_4_E, 246, 249251

examples for, 252, 255, 258262

Demultiplexers (DMUX), 243244

Destination registers, shift functions in, 199200

dff_f, 7779

DFF_FED, 6768

dff_r, 7477

DFF_RED, 6768

Dmux_1_2, 243245

Dmux_1_2_E, 244, 246247

Dmux_1_4, 245, 247249

Dmux_1_4_E, 246, 249251

Dmux_1_8, 251254

Dmux_1_8_E, 252, 255257

Down counter (CTD), 129130

E

Edge detection variables, 6768

EEPROM data memory, 4

encod_4_2_p, 296298

encod_4_2_p_E, 298299

encod_8_3_p, 300303

encod_8_3_p_E, 303306

encod_dec_bcd_p, 303, 307309

encod_dec_bcd_p_E, 304, 307, 310312

Encoder macros. See Priority encoder macros

Encoders, 295296

Example programs, 12

arithmetical macros, 170174

comparison macros, 158162

contact and relay-based macros, 5965

counter macros, 136142

decoder macros, 289294

demultiplexer macros, 252, 255, 258262

flip-flop macros, 8896

multiplexer macros, 233, 235, 239241

priority encoder macros, 312317

shift and rotate macros, 210224

EXNOR gate, 49

EXOR gate, 4749

F

f_edge, 7071

Falling edge detector (f_edge), 7071

Falling edge triggered D flip-flop (dff_f), 7779

Falling edge triggered JK flip-flop (jkff_f), 86, 8891

Falling edge triggered T flip-flop (tff_f), 8285

FED, 6768

Flash program memory, 4

Flip-flop macros

dff_f, 7779

dff_r, 7477

examples for, 8896

f_edge, 7071

jkff_f, 86, 8891

jkff_r, 82, 8588

latch0, 72, 74

latch1, 7273

r_edge, 6870

tff_f, 8285

tff_r, 8082

Four-pole double-throw switch. See 4 PDT switch

FRSTSCN, 19, 34

G

get_inputs, 5, 1112, 3233

H

HC165, 21, 3233

HC595, 2122, 3334

I

I/O contact debouncer, 2425

I/O extension board, 1, 49

I0 register, 15

I1 register, 15

ICSP capability, 1

In Circuit Serial Programming capability. See ICSP capability

in_out, 5455

INC, 163

incR, 168169

Increment functions, 163

initialize, 11, 3132, 97

initialization of counter macros within, 125

initialization of time macros within, 101

Input signals, 243

Inputs section, 6, 9

Internal relays, 18

inv_out, 5657

inv_R, 189190

J

jkff_f, 86, 8891

JKFF_FED, 6768

jkff_r, 82, 8588

JKFF_RED, 6768

L

latch out pin, 4

latch_out, 22

latch0, 72, 74

latch1, 7273

ld, 38

ld_not, 3940

Least significant bit (LSB), 199

Line decoders, 263264

Load macros, 3840, 121123

load_R, 121123

LOGIC variables, 19

Logical functions, 175

Logical macros

example for, 190197

inv_R, 189190

R1andR2, 176177

R1nandR2, 177179

R1norR2, 182183

R1orR2, 180181

R1xnorR2, 187188

R1xorR2, 185186

RandK, 177178

RnandK, 179180

RnorK, 183184

RorK, 181182

RxnorK, 187189

RxorK, 186187

M

m-to-n decoders, 263264

m-to-n encoders, 295296

M0 register, 17

M1 register, 1718

M2 register, 18

M3 register, 19

Macros. See also specific macros

arithmetical, 163170

BANK, 1315

comparison, 143158

contact and relay-based, 3859

counter, 123136

debouncer, 1314, 2531

decoder, 263286

demultiplexer, 243252

flip-flop, 6788

get_inputs, 3233

H165, 21

H595, 2122

logical, 175190

multiplexer, 225233

priority encoder, 295312

rotate, 201, 203, 205209

shift, 199204

swap, 209210

timer, 97115

Memory, 4. See also SRAM

Memory bits, 18

initial values of in Temp_2 register, 32

Model gate system, 319322

control scenarios for, 321323

solutions for the control scenarios for, 323336

Most significant bit (MSB), 199

Move macros, 121122

move_R, 121122

Multiplexer macros

Dmux_1_8, 251254

Dmux_1_8_E, 252, 255257

examples for, 233, 235, 239241

mux_2_1, 225227

mux_2_1_E, 226, 228229

mux_4_1, 228230

mux_4_1_E, 228, 231232

mux_8_1, 232234, 236

mux_8_1_E, 233, 235, 237238

Multiplexers(MUX), 225226

mux_2_1, 225227

mux_2_1_E, 226, 228229

mux_4_1, 228230

mux_4_1_E, 228, 231232

mux_8_1, 232234, 236

mux_8_1_E, 233, 235, 237238

N

n-to-1 multiplexers, 225226

nand, 4748

nor, 4244

Normally closed (NC) contact, 2223

Normally open (NO) contact, 2223

not, 40

Number of rotation, 199

Number of shift, 199

Numerical values, comparison of, 143

O

Off-delay timer (TOF), 102, 104

On-delay timer (TON), 9798, 101

or, 4142

or_not, 4243

Oscillator timer (TOS), 111112

out, 5153

out_not, 5355

Output lines, 243

Outputs section, 9

P

PIC16F648-based PLC

8-bit down counter for, 129132

8-bit off-delay timers for, 102107

8-bit on-delay timers for, 98102

8-bit up counters for, 126129

8-bit up/down counters for, 132136

control scenarios for model gate system, 321323

hardware, 19

oscillator timers for, 111115

pulse timers for, 107111

remotely controlled model gate system, 319322

software structure, 1122

solutions for the control scenarios for model gate system, 323336

PLC

hardware, 110

scan cycle, 5, 9, 1113, 1920

PORTB, 31

Power section, 1

Priority encoder macros

encod_4_2_p, 296298

encod_4_2_p_E, 298299

encod_8_3_p, 300303

encod_8_3_p_E, 303306

encod_dec_bcd_p, 303, 307309

encod_dec_bcd_p_E, 304, 307, 310312

examples for, 312317

Priority encoders, 295296

Program examples, 12

arithmetical macros, 170174

comparison macros, 158162

contact and relay-based macros, 5965

counter macros, 136142

decoder macros, 289294

demultiplexer macros, 252, 255, 258262

flip-flop macros, 8896

multiplexer macros, 233, 235, 239241

priority encoder macros, 312317

shift and rotate macros, 210224

Programmable logic controllers. See PLC

Programming section, 1

Pulse timer (TP), 107108

Q

Q0 register, 15, 17

Q1 register, 17

R

r_edge, 6870

R_EQ_K, 153154

R_GE_K, 151153

R_GT_K, 151152

R_LE_K, 155156

R_LT_K, 154155

R_NE_K, 157158

R1_EQ_R2, 146147

R1_GE_R2, 144146

R1_GT_R2, 144145

R1_LE_R2, 148149

R1_LT_R2, 147148

R1_NE_R2, 150151

R1addR2, 164165

R1andR2, 176177

R1nandR2, 177179

R1norR2, 182183

R1orR2, 180181

R1subR2, 165167

R1xnorR2, 187188

R1xorR2, 185186

RaddK, 165166

RAM data memory, 4

RandK, 177178

RED, 6768

Registers, comparison of, 143

Relay-based macros. See Contact and relay-based macros

Remotely controlled model gate system, 319322

control scenarios for, 321323

solutions for the control scenarios for, 323336

Rising edge detector (r_edge), 6870

Rising edge triggered D flip-flop (dff_r), 7477

Rising edge triggered JK flip-flop (jkff_r), 82, 8588

Rising edge triggered T flip-flop (tff_r), 8082

RnandK, 179180

RnorK, 183184

RorK, 181182

Rotate function, 199

Rotate macros. See Shift and rotate macros

rotate_L, 207209

rotate_R, 201, 203, 205206

RsubK, 167168

RxnorK, 187189

RxorK, 186187

S

Scan oscillator, 19

SCNOSC, 19, 34

send_outputs, 9, 11, 13, 3334

Shift and rotate macros

examples for, 210224

rotate_L, 207209

rotate_R, 201, 203, 205206

shift_L, 200201, 203204

shift_R, 199202

swap, 209210

Shift functions, 199200

shift in bit, 199

shift out bit, 199

shift/load, 1, 5

shift_L, 200201, 203204

shift_R, 199202

Single I/O contact debouncer, 2425

Source registers, shift functions in, 199200

Special memory bits, initial values of in Temp_2 register, 32

SRAM, 1113

allocation of variables for counter macros in, 123124

allocation of variables for timers in, 9799

BANK macros, 1315

edge detection variables, 6768

registers of, 3132 (See also specific registers)

Static random-access memory. See SRAM

SUB, 163

swap, 209210

Switches, 2223

T

Temp_1, 28

Temp_2 register, 19

initial values of special memory bits in, 32

Temporary registers, 13

tff_f, 8285

TFF_FED, 6768

tff_r, 8082

TFF_RED, 6768

Timer macros

definition of status bits of, 100

example for, 115119

TOF_8, 105107

TON_8, 98100, 102104

TOS_8, 112115

TP_8, 108111

Timer registers, 20

Timing signals, 1920

use of with debouncer macros, 2729

TMR0, 1213, 20, 31

TOF, 102, 104

TOF_8, 105107

TON, 9798, 101

TON_8, 98100, 102104

TOS, 111112

TOS_8, 112115

TP, 107108

TP_8, 108111

TPIC6B595 registers, 1, 4, 13

variable definitions, 17

U

Up counter (CTU), 124126

Up/down counter (CTUD), 132133

V

Variable definitions, 1221

W

Watchdog timer, 1112

X

xnor, 49, 5152

xor, 4749

xor_not, 4950

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.142.96.146