PIC Flashcards

1
Q

What does #fuses NOWDT do?

A

Disables the watch dog timer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does delay() do?

A

Stops the entire program

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does #fuses WDT do?

A

Enables the watch dog timer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does #fuses NOPUT do?

A

Means there’s no power up timer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does #fuses NOPROTECT do?

A

Allows the code to be read from the chip

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does #fuses NOBROWN do?

A

Disables brown out protection on the chip

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does #fuses NOMCLR do?

A

Allows use of the internal reset circuitry

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does #fuses NOLVP do?

A

Disables low voltage programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What does #fuses NOCPD do?

A

Means there’s no EE protection

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does #fuses RSTOSC_HFINTRC_64MHZ do?

A

Allows the use of the 64 MHz internal oscillator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What are the 5 steps to implement program?

A

1) #FUSES
2) #use delay (internal = ‘’ clock_out)
3) set up structure (IO pin definition)
(in main void)
4) set IO port direction
5) actual implementation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Why would you use a volatile character array?

A

To allow the character array be changed externally at any time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is serial buffer?

A

Is an internal data store

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What does getc() do?

A

Fetches a character from the terminal

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does the duty cycle do?

A

Sets the amount of time that the pwm is high for

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What are sinks and sources?

A

Source provides power, sink takes power

17
Q

What are the pros and cons of lookup tables?

A

It’s faster than calculating each time however it takes up more memory

18
Q

How do you set up the structure?

A

1) struct (IO port definitions)
{
data type, name of variable : 6 (for 6 bit);
}

19
Q

How of you map the structure to the registers?

A

byte IOportdirection = memory location (hex number)

20
Q

What are the three memory locations?

A

Port - reads
Latch - writes
tris - direction