[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]
2023-11: Warosu is now out of extended maintenance.

/diy/ - Do It Yourself

Search:


View post   

>> No.1795418 [View]
File: 740 KB, 2067x720, PIC.png [View same] [iqdb] [saucenao] [google]
1795418

Hi /mcg/
I want to stop using bang-bang controllers for SMPS. I want a custom controller with PIC micro. I have two types of chip PIC32MX250F128B (chipKIT DP32 dev board) and PIC16F1619 (Curiosity Dev board). I also have PICkit3. Now I know almost nothing about PIC programming. I took an MCU class where we used some old version of MPLAB and programmed a 40-pin PIC16 in assembly. Now I barely knew what I was doing in that class. The chipKIT DP32 board has mpide which allows you to program PIC like arduino but here I am trying to do commands like PORTB 0b00000001 where on chipKIT DP32 you have to do like PORTB.bits(A2) = HIGH to do the same thing. It's fucking weird and I hate it. Even with assembler though I don't really know difference between PORT, TRIS, and LAT and how to set regisiters and stuff. In general my programming knowledge of anything is REALLY bad and most help resources assume some level of programming knowledge which I don't have or it's so fragmented its useless or even counterproductive. MPLABX is too confusing. I learned in assembly and it tries to force you to use C++ and I don't know what options to pick to even set up the device nor do I know any syntax to put in to make code run. The datasheets for PICs assume you know about programming as well and I find them too hard to read. I need a lot of help. What are good COMPREHENSIVE PIC programming guides that will make you a skilled programmer from total retard.

Anyway I want to implment a quasi-resonant mode controller with current and voltage mode control using PID and feed forward control. Please don't recommend me use code libraries. a.) I don't know where to find these libraries and how to install them. I've tried many times to use libraries and I can just never get them to work. b.) Libraries are often poorly documented and always seem to assume you're a competent programmer that can figure them out. c.) you don't learn anything by constantly using pre-made libraries as a crutch

Navigation
View posts[+24][+48][+96]