PIC 12F509 Lesson

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
On Lesson 3 of tutorial.

Big news is. Have option to switch over to C language after this lesson.

I think we will do that.

Okay.Have gotten through Banking and Paging. Next is subroutines.

Will post any questions. Reading it through one time though. Will ask questions second time around.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Thank you Montanache!

'Practice' . Good advice.

'Not that way'. Guess I left out part about reading lesson three times.
 

be80be

Joined Jul 5, 2008
2,395
Reading is good but writing code and seeing what happens is way better.

Don't just blink a led make it fade in and out read switch put 8 on a port and send the w out to it and see the bits
show up.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Thank you Bebe!

Watched your short video there.

Read ahead in lessons.

Just the Assembler with Baseline 10 or 11 lessons.

Seems like it covers a lot of features of the Baseline's.

Maybe all of them. Pretty interesting.

I think Timers are coming up.

I am pretty sure tutorials get to ADC's. Maybe in Midrange assembler or C lessons.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
I am on a roll here!

After reading this lesson once have a new plan.

Going ahead to Lesson 4 and read it once.

This is beginning to all fall together.

Interesting as all get out to find out what some of this stuff is.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Thank you OBW!

Having fun with:

Reading a button switch.

BTFSC

BTFSS

At the moment.

Moving right through Lesson 4 Baseline Assembler
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
What is the difference between 'Timer0' and Oscillator?

I fell into a 'black hole' here in lesson 5.

Perftectly good lesson on timer.

I am just wondering what happened to the Ocsillator?

Maybe he will get to that later in lesson. I am just on first page.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Thank you Max

Okay. He got to it.

One instruction cycle. Timer counts 0 to 255.

Then goes on to say 'If PIC is running at 4mhz...'
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Thank you Max !

Oh yes. That gets covered.

About 15 pages of Timer 0.

Watchdog Timer fits in there. First setting of Prescaler. I think.

Prescaler. Got it.
 

OBW0549

Joined Mar 2, 2015
3,566
What is the difference between 'Timer0' and Oscillator?
Timer0 (and any other PIC timer) is just a binary counter, with extras (e.g., logic to compare its state with some reference contained in a register somewhere, and generate a signal when the two are equal). It can be clocked either from some external signal or from the PIC's internal oscillator, either directly (i.e., one count per instruction cycle) or indirectly through a "pre-scaler" which reduces the counting rate by some selectable binary divisor.

The oscillator is just that: an oscillator. It generates a clock signal that operates all of the PIC's innards-- registers, peripherals, logic and whatnot. Some PICs (such as the PIC12F509) have only one oscillator; other PICs may have several to select from, such as Slow RC, Fast RC, XTAL, and so forth. In addition to the main oscillator, some PICs have other oscillators which operate independently and serve special purposes, such as the oscillator which is part of the watchdog timer, or the low-power oscillator associated with Timer1 on some PICs to allow accurate timekeeping with a 32.768 kHz crystal.

But an oscillator is just an oscillator, no more.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Thank you OBW

These 'Here's another way to look at it.' comments really help.

The 'once through' can really leave you hanging. Sitting there going 'What?'.

But it is a good tutorial. I'm catching on. Mostly.

Tutorial mentions Timer 0 and interrupts. Says Interrupts will be covered later.
 

Thread Starter

PICNewbee

Joined Mar 31, 2017
355
Thank you Bebe

Rest of lessons are:

Assembler Directives

Special Features

7 Segment Displays

Comparators

ADC

Int Arithmetic and Arrays

Think he would have put Interrupts in title.

Looks like no interrupts covered in Baseline Assembler lesson set.

I did not look at table of contents for each lesson.

Think it goes to Midrange and Enhanced Midrange sets of Assembler lessons next.
 
Top