Wow my hello world 16f18446 got 21 downloads

Status
Not open for further replies.

be80be

Well-Known Member
I meant imported 21 times sorry
Microchip was giving away what's called the Curiosity Nano It's a 16f18446 that looks like a nano
It has some great stuff you use and programming is simple you just place the hex on what shows up as flash drive and it loads and runs
your code.
The hello world is just a simple led toggle using onboard led to see if you have it working I started with uart but needed to test to see if the osc was working
so I posted this.

http://mplabxpress.microchip.com/mplabcloud/example/details/701

 
Congrats. Do you have a link to that board? I can't find it on Microchip's website - I can never find anything on their site.

Mike.
 
Mine arrived last week and I just hooked it up for the first time last night. Thank you for the tip, Burt.
 
Oh my goodness... I just realized the "blinky" example I used to test my board last night was your program. Way to go, Burt!
 
OK, I thought I'd better join it My board is flashing now as well!.

However - I just thought I'd like to query this line:

__delay_ms(200); // 1 Second Delay

A little typo perhaps?.

I must admit, this range of new PIC's is rapidly becoming my favourite, decent amount of memory, great peripherals, and a wide range of pin selectable options.

Having said that, my current project (for which I'm awaiting PCB's) is using the 18F26K22 - which has even more memory, but even more important (for this application) two serial ports.

Just (this second) checked status on the boards, dispatched this morning, currently in a Chinese airport
 
Lol I started with 1 second I changed it too 200 ms I forgot to change the delay commit

But now to figure how to get the builtin usb serial to work It shows as a com port but
as of now I can't use it I no my code works on the 16f1825 But the com port is showing up as a sys only com port on Linux
 
Last edited:
To use the USB socket as serial you need to allocation the UART to the pins that the USB connects to, on a 16F18877 it's RC0 and RC1 - there's a demo program in the Express examples on the website.

Works fine in Windows.
 
It looks like we need to use PPS (Peripheral Pin Select) to get our signals on those pins. Here are the associated PPS register settings. I wonder if those require a PPS "unlock" sequence?

RX1DTPPS = 0b00001110; // RB6 = RX input
RB4PPS = 0b00001111; // RB4 = TX output

Use Code Configurator to add the USART module and use Pin Manager to select the pins?
 
Last edited:
The problem I had is I can't use the com port on linux I think I got that figured going to try it out now
 
Well serial works I just can't get the onboard serial to work.
I set the pins for Virtual COM Port interface over UART.
I think it's something to do with this.
The DTR Line there is no place to set it in putty
 
Last edited:
Guess there something wrong with the CDC I can use a usb to serial to see it's sending on the right pins but a can't get CDC to work as a com port
I Know the code works
 
I got a 16f18466 dev board free from microchip as above.
Plugging into win 7 or 10 there are drivers that don't install.
Has anyone had this problem?
 
I got a 16f18466 dev board free from microchip as above.
Plugging into win 7 or 10 there are drivers that don't install.
Has anyone had this problem?

No, I've used mine here on Win10 and at work on WIN7.
 
Only problem I'm having is the CDC it shows up and i'm sending data out the pins it said to use I tested it with a serial usb adapter.
But I guess like I posted above my software is not setting DTR cause it doesn't send data over the builtin serial at all.

But both linux and windows 10 shows it as a com port and a fash drive.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…