Thanks granddad for letting me know about that. One less part in the finished PC board.
rjenkinsgb: I'm still going to pick up 5 pieces to tinker with.
I'd like to collect up as many parts as I can.
You never know what ideas come. If I have the parts handy, I'll breadboard up the circuit and test it out.
When I was in the industry, it was a drudge, and something that I had to do to get paid. Now, it's all about learning and having fun.
It sure beats needlepoint
I just found this thread.
https://www.electro-tech-online.com/threads/midi-in-thru-using-a-6n138-and-a-74hc14.116584/
I'd like to touch on the software development part. I'm about 7 days away from getting the PIC chip (on the 48 pin DIP header.)
I'm going to use MPLAB-X, but I really don't want to use C. Not that I can't program in C mind you, it just doesn't make sense for the task at hand.
Naturally, I spent a week or so, looking through the spec sheets and the XC16 Assembler reference.
(I got that PDF from here...Thanks to whomever posted it.
)
So I created an empty project and added a new Assembler file.
It looks like this:
Code:
.include "p24F32KA304.inc"
.global __reset
.text
__reset:
.end
This compiles fine. I did get stuck on writing config bits to the address of the feature registers.
I remember that there was a macro in MPLAB that allows you to set up the configuration bits at the top of the assembly source file.
So I went snooping around in p24F32KA304.inc. I found this
Code:
;==========================================================================
;
; Configuration Words
;
; Configuration words exist in Program Space and their locations are
; defined in the device linker script. They can be set in source code
; or in the MPLAB IDE. Each configuration word should be specified
; only once (multiple settings may be combined.)
;
;==========================================================================
;
; Setting configuration words using macros:
;
; The following macro named 'config' can be used to set configuration words:
;==========================================================================
; NOTICE: CONFIG MACRO IS ****D E P R E C A T E D****
; Please use #pragma in a separate C file in the project.
; Some features in linker and compiler cannot use values
; set using this method. Please migrate to #pragma config method.
;==========================================================================
;
The question is: Do I just ignore this and use the config macro anyway?
Or is there a trick to writing to the config memory while the CPU is running?
I have scoured the web looking for PIC24F KA examples, but have not found a single one.
They all say to use C.