hybridfree/eevblog-posts huggingface dataset:
Microchip PIC library [SOLVED] - Page 1
Forum section: electronics / general

author: typematrix
author_rank: Contributor
timestamp: March 05, 2019, 12:15:19 am
content: HiI am looking for an up-date library for Microchip pics. Especially the PIC 16F1619This is the PIC that was in included with the DM164137 - Development Kit, Curiosity, Integrated Programmer/Debugger, which supports 8/14/20 Pin 8-Bit PIC MCU's.I am using Autodesk Eagle v 9.3.1Thank You.

author: rachaelp
author_rank: Unknown
timestamp: March 05, 2019, 07:10:59 am
content: If you haven't found something suitable with a short amount of Googling then it's time to create your own library part. It's an essential skill and for most parts it's quicker than asking on a forum and hoping somebody else will have done the work for you and it will be of suitable quality. You always need to thoroughly check libraries you get from elsewhere anyway which takes up almost as much time as well. The part in question is only a tiny 20-pin device so it's not going to take long to create it.If you don't know how to create libraries in EAGLE then I wrote a tutorial series on this a few years ago which can be found here:https://www.element14.com/community/docs/DOC-88188/l/eagle-tutorial-seriesAlternatively if you prefer video tutorials then rx8pilot is creating a YouTube series where he's initially focussed on creating libraries here:https://www.youtube.com/playlist?list=PLOo2xvUufB3GPXexU7RjD_ka7hCCSyfk2Best Regards,Rachael

author: Ian.M
author_rank: Super Contributor
timestamp: March 05, 2019, 07:46:40 am
content: Most 8 bit PICs have a standardised pinout - at least as far as where port pins, power and ground, /MCLR and ICSP connections go - for each package Microchip use. With a few exceptions for obsolete parts, as long as pins are named by port bit not peripheral function, you do *NOT* need individual library parts for the whole PIC12/16/18 product range.

author: typematrix
author_rank: Contributor
timestamp: March 06, 2019, 03:36:24 pm
content: Thanks for repliesI found what I has looking for it by chance(not exact model but close enough for my purposes) was inside in a sparkfun library in micro-controllers section. Which I had already installed but did not sure up in search.I will learn how to make custom parts/libraries some day when I get time. so busy.Solved.
NGSpice and a digital simulator of AVR8 - Page 1
Forum section: electronics / general

author: dsl
author_rank: Newbie
timestamp: March 16, 2019, 11:23:58 am
content: Hi,I just want to let you know that a little project of mine can be compiled asXSPICE code model library. I tinker with AVR8 from time to time and decided toprogram a digital simulator which can be embedded into NGSpice:-https://imgur.com/a/J1wM4BI(macOS 10.14.3, example circuit, NGSpice-30 and MCUSim-0.2-preview1)-https://imgur.com/a/ryF2vSo(Windows 10 x64_64, example circuit, NGSpice-30 and MCUSim-0.2-preview1)-https://imgur.com/a/UM7gVNo(FreeBSD 12 x86_64, example circuit, NGSpice-30 and MCUSim-0.2-preview1)Preview release is there:https://github.com/mcusim/MCUSim/releases/tag/0.2-preview1C&C are highly welcome.
ST OTP EPROM Cross reference - Page 1
Forum section: electronics / general

author: ercapoccia
author_rank: Regular Contributor
timestamp: March 07, 2019, 05:49:20 pm
content: Hi there,i need to replace a ST M27C512 PLCC32 because i need to write a new firmware version. I have the .BIN file for the ST branded eprom but i can't find them anywhere.TheST Cross Reference Guidesays that the ATMEL AT27C512R is compatible.Can i just flash the ATMEL eprom with the same file?

author: darrellg
author_rank: Unknown
timestamp: March 07, 2019, 06:22:27 pm
content: A .bin file is normally just an image of the entire contents of the PROM. It shouldn't matter who manufactured the device.

author: stj
author_rank: Super Contributor
timestamp: March 07, 2019, 06:26:10 pm
content: any 27c512 in PLCC package that runs at the required speed or faster.you didnt specify the speed.

author: ercapoccia
author_rank: Regular Contributor
timestamp: March 08, 2019, 06:06:50 am
content: Thank you, speed won't be an issue, i have a 10c1 (100ns) and my favourite shop has 45ns and 70ns in stock, basically at the same price. I'll go with the 70ns.
Alinx AX309 Display - Page 1
Forum section: electronics / general

author: Pluscrafter
author_rank: Regular Contributor
timestamp: February 23, 2019, 08:42:14 pm
content: Could you use the Displayhttps://www.ebay.ch/itm/4-3-inch-TFT-LCD-display-module-for-FPGA-development-board-480-RGB-272-TFT/112549066932?hash=item1a347278b4:g:HX4AAOSwBT9Zqmx1:rk:9:pf:0for the Alinx AX309 FPGA board also for raspberry through the SPI? I can't find any datasheet, if there is a LCD controller on it.

author: madires
author_rank: Super Contributor
timestamp: February 23, 2019, 09:01:05 pm
content: The SPI is just for the touchscreen controller.

author: Pluscrafter
author_rank: Regular Contributor
timestamp: February 24, 2019, 06:32:03 pm
content: Is there any datasheet for it? I can't find any.

author: madires
author_rank: Super Contributor
timestamp: February 24, 2019, 06:56:07 pm
content: Sorry, I have no idea which controller the display uses.

author: newbrain
author_rank: Super Contributor
timestamp: February 25, 2019, 07:16:14 am
content: Quote from: madires on February 23, 2019, 09:01:05 pmI do not see any mention of touch on eBay ad.Given the pinout -a pure RGB video interface- and the 480x272 size, I would think the controller is something such as theili9341Edit:Nope, totally misremembered the resolution. Something like theOTA5180, instead.

author: madires
author_rank: Super Contributor
timestamp: February 25, 2019, 08:48:16 am
content: Quote from: newbrain on February 25, 2019, 07:16:14 amThe PENIRQ in the pinout is a dead giveaway.

author: Pluscrafter
author_rank: Regular Contributor
timestamp: March 04, 2019, 11:09:10 pm
content: The seller actually send me the datasheet for it. It's a TM043NBH02 LCD from Shanghai Tianma with a AX5201ESA voltage regulator and a XPT2046 touchscreen controller, but they didn't mentioned the controller for the LCD but it's a generic LCD.

author: madires
author_rank: Super Contributor
timestamp: March 05, 2019, 11:39:06 am
content: I've found a datasheet for the TM043NBH02 and it states the ST7282T2 as controller.

author: Pluscrafter
author_rank: Regular Contributor
timestamp: March 05, 2019, 04:36:27 pm
content: Thx:) I had Overseen it. Was very late when I read the datasheet.
How to start on PIC/ARM - Page 1
Forum section: electronics / general

author: Moriambar
author_rank: Unknown
timestamp: March 05, 2019, 10:59:43 am
content: Hi there.In my beginner experience I only used AVR micros. Why? Because some years ago I foundthis bookwhich helped me a lot understanding the basics of micros etc. Also it helped me using my arduino to program the AVRs.Now I think it's time to expand my knowledge with PICs and perhaps ARMs. Is there any resource comparable to the book I mentioned about them, or any books you would recommend about them?Also: is it valuable to buy a PICKit 4 to program them or is it doable via arduino? Is there any alternative for ARMs?Cheers and sorry for the newbieness in this matters.

author: Psi
author_rank: Super Contributor
timestamp: March 05, 2019, 11:03:05 am
content: Probably more useful to go directly to ARM rather than learn another 8 bit platform.Unless you have a need for PIC for a project.However, if all the microcontroller programming you've done so far has been with Arduino you might be better to learn to use AVR's without the Arduino training wheels on.Going from Arduino to Raw AVR is a more manageable jump than trying to go from Arduino to ARM.

author: mariush
author_rank: Super Contributor
timestamp: March 05, 2019, 11:14:27 am
content: You can program most "modern" PIC 8 bit microcontrollers using their 15$ programmer :https://www.microchip.com/Developmenttools/ProductDetails/PG164100Basically, pretty much all PIC microcontrollers that support low voltage programming can be programmed with the programmer above.You have MPLAB-X ide which is free.From there, you can google for PIC tutorials, but most recommend older series of PIC microcontrollers which are very basic but basically there's better alternatives.A good tutorial seems to be this one:https://www.gooligum.com.au/PIC-tutorials

author: malagas_on_fire
author_rank: Frequent Contributor
timestamp: March 05, 2019, 11:20:38 am
content: Another alternative in the 32 bits area is the STM32duino , in an arduino way [ Edit ]:https://www.eevblog.com/forum/testgear/test-equipment-anonymous-(tea)-group-therapy-thread/msg2234529/#msg2234529

author: mc6800
author_rank: Contributor
timestamp: March 05, 2019, 11:49:53 am
content: I've just picked up a book ("Programming with STM32 nucleo boards") from Elektor. They are bundling the nucleo board with the book at the moment, and from first reading it seems quite a good introduction to an arm/cortex chip.
PIC12F bootloader (PIC12F1572) - Page 1
Forum section: electronics / general

author: Warhawk
author_rank: Frequent Contributor
timestamp: February 22, 2019, 10:12:15 pm
content: Guys,could anyone recommend a reliable bootloader for the PIC12F family?I have a community, non-profit project which would benefit from it. Something which would simply allow technical user updating the firmware without much hassle. Something with arduino simplicity.The command line in linux & windows would be enough. I googled few projects but the gui is often quite overkill.PS: It may easily happen that SNAP or a PK3 clone programmer with the GUI is more practical than supplying a USB-to-serial converter and some bloated software.Thanks for any tip!Jiri

author: tsman
author_rank: Frequent Contributor
timestamp: February 22, 2019, 11:23:32 pm
content: The ds30 bootloader supposedly supports PIC12F chips. I've never used it on a PIC that small but it worked okay on PIC24s. There is a paid version and an old open source free version.If you want simplest method then a PICkit with the new firmware loaded inside for the Programmer-To-Go feature would do it. They plug in the PICkit to the ICSP socket + power and then press the button to load the new firmware. Somebody does need to prepare the PICkit though.

author: cv007
author_rank: Frequent Contributor
timestamp: February 22, 2019, 11:36:52 pm
content: I would spend the $15 on a SNAP if/when needed (the technical user), and be done with it. You are $5-10 above the usb-serial converter you otherwise would have to buy, but now you have the advantage of being able to easily switch to another chip without having to worry about a bootloader each time you switch. You also no longer need to worry about special linker scripts, reduction in user app flash availability, special software, and so on. You also get the advantage of being able to debug when needed. A one time purchase that will last many years. If you are using (and need) the mclr pin on a 12F (cannot then use low voltage programming), then move to a 14 pin pic.Bootloaders have a place, but can often be more work and trouble than they are worth. The best bootloader is no bootloader.

author: Warhawk
author_rank: Frequent Contributor
timestamp: March 04, 2019, 02:59:57 pm
content: Thanks a lot guys. I think I will go the way with external programmer. It really makes better sense.
WIll te same code work - Page 1
Forum section: electronics / general

author: Andreilie
author_rank: Newbie
timestamp: March 02, 2019, 02:42:41 pm
content: Hello,I have a silly question I think.Iwant to use for a project an existing code written for stm32f405 microcontroller, which has an ARM Cortex-M4F core.Can I use the code for a STMF7 CHIP ?Thanks.

author: ogden
author_rank: Super Contributor
timestamp: March 02, 2019, 03:43:11 pm
content: Your question is answered in AN4660.

author: Fred27
author_rank: Unknown
timestamp: March 02, 2019, 06:31:04 pm
content: I find that code ports easily, but peripheral setup takes some tweaking. It should be reasonably simple if you're sticking with STM32s, but will still take some time and effort.

author: TomS_
author_rank: Frequent Contributor
timestamp: March 04, 2019, 01:57:42 pm
content: Quote from: Fred27 on March 02, 2019, 06:31:04 pmThis would match my experience too.The main logic of your application should be portable enough between platforms and families - but the bits that interface with peripherals (configuring timers/responding to their interrupts, talking to UARTs etc) will need to be adapted on a per device/family basis.If your code is well written, the peripheral interfaces should be abstracted away from your application logic code so that they can be replaced easily. If not, this would be a good exercise to do just that. The build environment should ideally make some variables available to the compiler so that you can use ifdefs etc to include or exclude different pieces of code depending on the type of device the code is being compiled for.
ESP8266 analogWriteFreq(32000) gives 30.1 khz instead of 32khz. Why ? - Page 1
Forum section: electronics / general

author: AlcidePiR2
author_rank: Regular Contributor
timestamp: March 03, 2019, 12:43:32 pm
content: Dear All,Using a Nodemcu ESP8266 board, with the Arduino IDE,I want to generate a 32 khz square clock signal. I thus usepinMode(myclock, OUTPUT);analogWriteFreq(32000);analogWrite (myclock, 512) ;I have indeed a square signal, but the frequency, measured with both a Rigol 1054z and TDS220 is 30.1 khz.I have changed the board, and get the same result.Does someone knows why there is this offset ?Thanks

author: firehopper
author_rank: Frequent Contributor
timestamp: March 03, 2019, 05:10:12 pm
content: I dont know what clock the esp is using but perhaps it wont go any faster? try other frequency's both lower and higher. see what you get.. you might be approaching or beyond what this thing can do..

author: ejeffrey
author_rank: Super Contributor
timestamp: March 03, 2019, 07:47:57 pm
content: Are other frequencies similarly off? If so it could just be due to the accuracy of the system clock. If that microcontroller is using an internal oscillator that could be totally within the expected tolerance.If different frequencies are off by different amounts it could be due to the divider resolution. Those outputs are generated by a counter running from the system clock. That means you have to round the ideal division factor to a legal value if it isn't already.

author: AlcidePiR2
author_rank: Regular Contributor
timestamp: March 03, 2019, 08:38:31 pm
content: Thanks for your answers.It seems that you are both right.I made tests with other frequencies50 khz -> 36.7932 khz -> 30.120 khz -> 19.1710 khz -> 9.78So it seems that it is close to the limit at 32 khz, but at the same time the precision, even at 10 khz is not that good.I just tested the same thing with an ESP32 and the results are much better.

author: tsman
author_rank: Frequent Contributor
timestamp: March 03, 2019, 09:46:14 pm
content: analogWriteFreq/analogWrite is doing software PWM. The ESP8266 Arduino core implementation uses a timer ISR to twiddle the output pin. The code limits the PWM frequency to between 100Hz and 40KHz. Don't expect good accuracy especially at higher frequencies.
MPLAB ICD 4 In-Circuit Debugger (50% Off) - Page 1
Forum section: electronics / general

author: diyaudio
author_rank: Frequent Contributor
timestamp: March 11, 2019, 03:50:10 pm
content: Bought one, always wanted an ICD3 got a new ICD4 for $124Expires : 31-Mar-2019https://new.microchipdirect.com/product/search/all/DV164045

author: jackthomson41
author_rank: Regular Contributor
timestamp: March 12, 2019, 06:06:22 pm
content: It says $249 to me, btw check theseArduino Starter Kitsas well.

author: diyaudio
author_rank: Frequent Contributor
timestamp: March 12, 2019, 06:47:01 pm
content: Quote from: jackthomson41 on March 12, 2019, 06:06:22 pm50% OffCoupon CodeTP1952
Atmel ICE vs Microchip ICD4 for Atmel Studio 7 - Page 1
Forum section: electronics / general

author: Helix70
author_rank: Unknown
timestamp: February 19, 2019, 10:21:21 pm
content: I have received a few samples of an existing project with an AT90CAN128 micro with a 2mm pitch JTAG header that I want to put firmware on an possibly debug with Atmel Studio 7.Is the PICKit 4 a viable option, or is the Atmel ICE the only way to go? I guess I will need a custom JTAG cable either way.There is no easy access to the SPI, so ISP is not a good option.

author: Helix70
author_rank: Unknown
timestamp: February 28, 2019, 08:46:03 am
content: Really? No one uses a pickit 4 with avr 8 bit micros?

author: westfw
author_rank: Super Contributor
timestamp: February 28, 2019, 10:07:06 am
content: I don't think that AS currently supports PICkit4 (or Snap.)Note that ICD4 and PICkit4 are different products!

author: Helix70
author_rank: Unknown
timestamp: March 01, 2019, 11:55:14 am
content: Yes, I know. I meant PICKit 4. So I bought one to try.I can confirm that Atmel Studio 7 *does* in fact work with the PICKit 4 and AVR chips (AT90CAN128 in my case), after MPLAB X 5.15 updated the firmware of the PICKit 4.My setup is a PICKit 4 connected to the JTAG pins of an AT90CAN128. Pin connections are here:http://microchipdeveloper.com/pickit4:interface-pinoutsI also successfully imported the AS7 project into MPLABX 5.15 and built and debugged with that too. MPLABX imported the ATMEGA DFP automatically. All i had to do was define F_CPU and off it went.Not sure what I prefer yet.Also, FYI, ICD 4 is 50% off on the microchip website. It would still have been 3 times the price of the PICKit 4 though.
unknown microcontroller (SYC8P1213) - Page 1
Forum section: electronics / general

author: Leo86
author_rank: Contributor
timestamp: February 27, 2019, 01:27:34 pm
content: Hi everyone!C.I or microcontroller (SYC8P1213), anyone know about this item?https://www.photobox.co.uk/my/photo/full?photo_id=501690597093tks.

author: TomS_
author_rank: Frequent Contributor
timestamp: February 27, 2019, 04:16:00 pm
content: Can you attach the image here, rather than linking to a site that requires people to login or sign up?

author: technix
author_rank: Super Contributor
timestamp: February 27, 2019, 05:06:12 pm
content: That picture is not loading. Do you mind uploading it as an attachment again?

author: technix
author_rank: Super Contributor
timestamp: February 27, 2019, 05:10:30 pm
content: This is said to be a Chinese OTP microcontroller.

author: amyk
author_rank: Super Contributor
timestamp: February 28, 2019, 01:44:50 am
content: https://www.amobbs.com/thread-5676800-1-1.htmlhttps://www.eevblog.com/forum/microcontrollers/do-you-recognise-this-logo-on-a-16-pin-soic-microcontroller/A very weird and mysterious company (or set of companies)...
atmega32u4 customer board device manager doesn't recognise - Page 1
Forum section: electronics / general

author: Harmony
author_rank: Newbie
timestamp: February 21, 2019, 06:51:35 am
content: I have built a ATMega32u4-AU custom board (8Mhz Ceramic Resonators, 3.3V), after set the fuse: Fuse High Byte: 1001 1001 (0x99) Fuse Low Byte: 0101 1110 (0x5E) Extended Fuse Byte: 1111 0011 (0XF3), and downloaded bootloader to the chip, the device manager still shows "Unknown USB device", I cannot find which step I did wrong, please kindly point out. Many thanks.

author: up8051
author_rank: Frequent Contributor
timestamp: February 21, 2019, 09:56:50 am
content: Set Fuse-Bits as below.lowFuse 0xFF , highFuse 0xD9 ,extendedFuse 0xC3

author: jackthomson41
author_rank: Regular Contributor
timestamp: February 22, 2019, 03:17:50 pm
content: Did you uploadArduino bootloaderin Atmega32

author: Sarcarean
author_rank: Contributor
timestamp: February 27, 2019, 10:10:56 am
content: "Unknown USB device" usually means the base driver is loaded. Try and load the Atmel FLIP driver or the generic LIBUSB driver.
I2C with attiny using TinyWire causes the bus to go low - Page 1
Forum section: electronics / general

author: Moriambar
author_rank: Unknown
timestamp: February 24, 2019, 05:40:03 pm
content: Hi there.I tried posting this on the arduino forums too, but I think here is better.I have the need to use an attiny85 chip on a i2c bus. It has to have both slave and master functionalities in the end, but it's not the issue now.I used theTinyWirelibrary in order not to have to write everything from scratch, since its predecessor (TinyWireM for the master) worked fine and I used that a lot with tiny 8/45 chips.Basically right now the net has only a Nano acting as a master, trying to call the tiny. And guess what: when the communication starts both SDA and SCK are pulled low and stay that way indefinitely. I tried:disconnecting the tiny: the bus works properlyconnecting other stuff on the bus, with or without the tiny but NOT calling the tiny: the bus works properlySo I suspect it's either a problem of the library (doubt it) or of my code (that's more like it), especially the "tiny" side.Here is the "master" nano code:Code:#include <Wire.h>void setup() {Wire.beginTransmission(0x10);Wire.endTransmission();delay(1);}void loop() {// put your main code here, to run repeatedly:}and the tiny code:Code:#include <TinyWire.h>#include <avr/io.h>#include <util/delay.h>#include <stdint.h>#define addr 0x10volatile boolean startLed;int main(){TinyWire.begin(addr);TinyWire.onReceive(onI2CReceive);while(1){if(startLed){startLed=false;// Do something later}}return 0;}void onI2CReceive(){startLed=true;}Please do mind that I tried sending data on the tiny and even putting a while inside the onI2CReceive function, reading the data, but nothing changed. This is the easiest failing example I can give.So, what am I doing wrong here?Cheers!
Need Lattice FPGA to send interrupts to linux OS on Beaglebone - Page 1
Forum section: electronics / general

author: Brown123
author_rank: Newbie
timestamp: February 21, 2019, 11:18:06 pm
content: I have the BeagleWire FPGA cape for the BeagleBone Black and I want to send interrupts from the FPGA to the linux os on the BeagleBone every time a switch is pressed on the cape . The BeagleWire consists of the Lattice iCE40HX4K FPGA. I understand this is done through GPIO and that an interrupt request line has to be set up between the two but need an explanation as to the steps that I need to take to go about setting up this in Verilog. I'm fairly new to FPGAs, just starting out, so any help/tips would be appreciated. Details regarding the BeagleWire including its open source software, can be found below:https://www.crowdsupply.com/qwerty-embedded-design/beaglewirehttps://github.com/pmezydlo/BeagleWire

author: blacksheeplogic
author_rank: Frequent Contributor
timestamp: February 23, 2019, 02:31:35 am
content: You will need to look at an example provided with your kit as it depends on the tool set. I don't use the same tool chain so I can comment on the specifics within the tools you are using (I use Quartus & Platform Designed), but at a basic process level in Platform Designer it just a matter enabling IRQ's, setting the type of IRQ on the port, and connecting it to the HPS IRQ.You need to take a look at the examples that came with your board because it's non-trivial to implement the bridge by hand so use the tool and the verilog will be generated by the tool.However, you then need to create a device tree and then write the device driver which requires being able to build the kernel and use DTC. If you are using the Linux OS provided with the board it's probably something like BusyBox so you either need to use a cross compiler on an Windows/Linux box or build a new kernel and rootfs for the board you are using with the development tools (I built a Debian LTS distro for the board I'm using). If you build your own kernel/rootfs or use a Linux Workstation you don't need the EDS or the ARM tool chain. I find it's much easier to use a Linux Kernel running on a Workstation for development because the windows tools don't work out of the box (my experience).In summary, if you are new to this, you really need to work though the examples provided. It's not a trivial walk though someone can write up in a couple of minutes on a forum.Probably not the response you wanted I know, but there's no short cuts if you have not done this before. Work though the examples that came with your board.
[AVR] Does UPDI need a +Vcc? - Page 1
Forum section: electronics / general

author: Simon
author_rank: Unknown
timestamp: March 01, 2019, 04:01:57 pm
content: I'm working on a project with the ATmega3208, it is programmed by UPDI. I have 6 outputs on my connector that are all optionally set to 2 different channels with 0 ohm resistors. I could make one pin of the connector a programming pin, but I can't spare a second for Vcc. I already have ground in the connector. Will the interface work with just the UPDI pin and ground? If it keeps the programmer happy i can always give in the same Vcc as the µC.

author: mikerj
author_rank: Super Contributor
timestamp: March 01, 2019, 04:51:55 pm
content: Typically a programmer/debugger like the Atmel ICE will need to see the target voltage to set the correct logic thresholds on the data pin.

author: Simon
author_rank: Unknown
timestamp: March 01, 2019, 05:11:45 pm
content: OK, if that is all its for I can fake it or if the input impedance of the Ice is high enough I can use a thermistor input as the reference as it will be pulled up to Vcc
Support software for the Metalink COP8SA-EPU-2 - Page 1
Forum section: electronics / general

author: cvavr
author_rank: Newbie
timestamp: January 30, 2019, 06:02:58 pm
content: HelloBack in 1996 my company has purchased a COP8SA-EPU-2 Programming and Evaluation Unit(programmer and hardware debugger) produced by Metalink for the NS COP8 microcontrollers.Now we need to use the unit again for modifying and testing an old project.Unfortunately the diskette with the EPU driver is damaged.I have tried to contact Metalink support e-mail, but they don't answer.It seems that the company is out of business.The web sitewww.metaice.comis empty and was not updated since 2012.Maybe somebody has a copy of the COP8 EPU driver software to share.Many thanks.

author: grantb5
author_rank: Regular Contributor
timestamp: February 01, 2019, 07:34:49 pm
content: You might be able to find something on eBay. This popped up off the bat, but looks a little different:https://www.ebay.com/itm/Metalink-iceMASTER-1M-COP8AD464-Circuit-Emulator/181975152995

author: westfw
author_rank: Super Contributor
timestamp: February 20, 2019, 05:28:31 am
content: Maybe? I found a COP8 system with some sort of Metalink hardware on my shelf, and it had a CD.ISO image here:https://drive.google.com/file/d/1tdsAjtU9q1jsTbWGHMiL8ld86qjNaPcx/view?usp=sharingIt's all mysterious install files at first glance; I can't immediately tell whether it has what you need or not.(On closer inspection, my thingy seems ot be an iceMASTER-WA COP8-EM/DM/IM-Flash (NSID: COP8-EMFLASH-00, Metalink COP8WA10020), and the documentations (printed!) says it's from circa 2000.)
Microcontroller vs DSP for SVPWM.  - Page 1
Forum section: electronics / general

author: imranahmed
author_rank: Newbie
timestamp: February 19, 2019, 04:39:55 am
content: Please let me know that about implementing SVPWM for induction motor and controlling V/f ratio which one uC or DSP will do the great job?

author: Siwastaja
author_rank: Super Contributor
timestamp: February 19, 2019, 06:29:22 pm
content: This was a special, expensive task 30 years ago.Now, for example, from the STM32 series of ARM controllers,almostany will do it for $2. Same for most modern controller series, not including the cheapest/smallest.

author: imranahmed
author_rank: Newbie
timestamp: February 19, 2019, 06:43:28 pm
content: Do you know any book or internet referencefor guiding SVPWM?
ATSAMV70 & ATSAME51 series - Page 1
Forum section: electronics / general

author: stroh90
author_rank: Newbie
timestamp: February 18, 2019, 10:02:33 pm
content: Hi,I'm looking for fast(ish) M4 / M7 parts with ISO CAN-FD. Differential ADC would be nice too. I don't have much experience with recent Atmel SAM parts -some folks around here seem to be suspicious of them.The most recent Atmel part I messed around with was an ATSAMA5 and I had no problems with that at all. Assuming you don't need CAN-FD of course - it's advertised as a headline feature, but in the errata, completely broken !!I'm familiar with STM32 parts and as far as I can see the only ST part with ISO CAN-FD is the top end, stupidly blinged-out H7 (but no differential ADC)Does anyone have anything good or bad to say about these (and *recent*) Atmel ARM parts? I know NXP & ST seems more popular around here and would probably have fewer surprises...

author: ataradov
author_rank: Super Contributor
timestamp: February 18, 2019, 10:12:43 pm
content: I work for Microchip, so my opinion of the parts is probably irrelevant here.But as far as CAN-FD goes, both parts include working CAN-FD, that is actually a Bosch IP used by many other companies.With V70, you need to get Revision B parts, since Rev A had an older IP, which has widely known CRC issue, which was fixed in 2015 version of the ISO standard, but the parts were in the pipeline before that happened.

author: JPortici
author_rank: Super Contributor
timestamp: February 18, 2019, 10:31:16 pm
content: I'm going to throw another player in the field: if your application doesn't *need* floating point or ludicrous clock speeds dsPIC33CH/CK could be worth a lookQuote from: ataradov on February 18, 2019, 10:12:43 pmi thought they were going with kvaser again... or is kvaser actually using bosch's IP?Edit: Sorry i was thinking of the dsPIC, the ATSAM has a completely different register organization so they can't be using the same IP

author: lucazader
author_rank: Regular Contributor
timestamp: February 19, 2019, 02:10:23 am
content: I know you discounted the STM32H7 series, however have a look at the H750 line.The H750VB is competitively priced compared to the SAMV70 in singles, and starts to get quite a bit cheaper when purchased in qty 100 or 1k.The only downside to the H750 series is they are the 'access' line, and have very limited on chip flash (well, still 128k), if you need more you would need to use a QSPI flash chip, but they are pretty cheap.It has:- 3x 16bit 3.6MSPS adc's which can be used in differential mode.- 2x FD-CAN modules (haven't used them so don't know what underlying IP they use etc)- Operate at up to 400MHz if needed
MacOS DFU GUI - Page 1
Forum section: electronics / general

author: RomanST77
author_rank: Newbie
timestamp: February 17, 2019, 08:38:59 pm
content: Hi there!I've got a new hobby project, MacOS GUI app for USB DFU (device firmware update tool). Here is how it looks now:I'd like to know if anyone interested in testing. This version is locked to STM32 controllers, however nothing stops me from adding more ICs and more features.Let me know what you think please.Thanks!
Your longest time to complete an HDL simulation? - Page 1
Forum section: electronics / general

author: emece67
author_rank: Frequent Contributor
timestamp: February 13, 2019, 11:29:25 am
content: .

author: legacy
author_rank: Super Contributor
timestamp: February 13, 2019, 12:24:31 pm
content: the most interesting question is: what were you simulating for taking so long time to complete?

author: brucehoult
author_rank: Super Contributor
timestamp: February 13, 2019, 12:26:37 pm
content: Probably not that long, but that's only because there's no reason to.We usually run bare-metal Dhrystone and Coremark in verilator which take I guess sometimes a couple of days, but things such as booting linux and running SPEC we leave until we have the design in an FPGA -- and then a SPEC run can take a week or two.

author: legacy
author_rank: Super Contributor
timestamp: February 13, 2019, 01:02:59 pm
content: Ironically, it took 2 years for cross-compiling Gnat on a Linux/x86 box targetting for a Linux/HPPA workstation, this in order to have a working Ada compiler for building an HDL simulator. Now it works, and the first simulated circuit took just a couple of minutes.So 2 years for 2 minutes of fun, but it was really insanely great

author: LapTop006
author_rank: Unknown
timestamp: February 13, 2019, 01:32:52 pm
content: Quote from: legacy on February 13, 2019, 01:02:59 pmSeems odd, as I recall by the time Linux on HPPA was vaguely usable the machines were obsolete enough I'm surprised you'd bother.

author: emece67
author_rank: Frequent Contributor
timestamp: February 13, 2019, 02:37:40 pm
content: .

author: legacy
author_rank: Super Contributor
timestamp: February 13, 2019, 02:44:10 pm
content: Quote from: emece67 on February 13, 2019, 02:37:40 pmthat's interesting. I do HDL for more the hobby, DO-178b for the job.ModelSim for DO-245 is great!

author: ale500
author_rank: Frequent Contributor
timestamp: February 13, 2019, 07:27:36 pm
content: Our mixed-mode simulations need 1 second per 3 ns of simulated time..., the chip has around 200 k gates.

author: legacy
author_rank: Super Contributor
timestamp: February 15, 2019, 03:52:49 pm
content: Quote from: emece67 on February 13, 2019, 02:37:40 pmwhich machine have you used? XEON@??Ghz?

author: emece67
author_rank: Frequent Contributor
timestamp: February 15, 2019, 04:48:13 pm
content: .
MPC561MZP56 ALLISON TCM A53  - Page 1
Forum section: electronics / general

author: Eaquijada
author_rank: Newbie
timestamp: February 07, 2019, 08:41:24 pm
content: Good morning everyone, im in the task to unbrick an Allison TCM A53 module of the gearboxfrom Mercedes Benz Buses, after doing a lot of research this modules,have a BDM port to do "Something", i downloaded the exact datasheet of the MPC561MZP56,to figure it out why and for what that BDM port was there.Here is the deal these TCM most of them ar bricked, my task is to try to unbricked them,i have a Xprog, BDM100, UPA, Kess and Jtag.I want someone to help me out, with some of the doubts i have, for example:can i read this MPC?With what can i read this MPC?Does exist a pinout for this MPC port?any help would be much appreciated.regards.

author: Eaquijada
author_rank: Newbie
timestamp: February 11, 2019, 06:50:40 pm
content: anyone?

author: amyk
author_rank: Super Contributor
timestamp: February 12, 2019, 03:00:21 am
content: The very first chapter of thedocumentationsays the MPC561 has no flash, so what are you going to read...?

author: Eaquijada
author_rank: Newbie
timestamp: February 12, 2019, 08:43:27 pm
content: thank you for answering, but if has no flash why are those BDM pads for?if there a way to do a hard reset to this MPC them? or something?cause the TCM is bricked because another person didnt do the right flash method and it bricked the TCM, i thought there was a way to unbricked

author: ale500
author_rank: Frequent Contributor
timestamp: February 13, 2019, 07:16:27 pm
content: Unless it has a masked ROM, it has some external to the CPU flash. Look around for a suitable part, some parallel NOR flash. The debug port is then used to program such flash, debug... test. During EOL every unit has to be programmed and calibrated, that has to be done somewhere, either via CAN/Flexray (or whatever this unit has) or through an internal port.On some ECUs there is a bootloader used to bootstrap the firmware, update it and so on, this bootloader can be accessed through CAN or Flexray. The first question that pops my mind is... do you have the right firmware for this unit ?, and how about some calibration data ?...Btw, saludos
Recommendations for static analysis tool - embedded C/C++ - Page 1
Forum section: electronics / general

author: Cicero
author_rank: Contributor
timestamp: February 14, 2019, 11:55:13 am
content: Hi chaps,I'm reviewing our procedures at the moment.There's a lot out there in regards to static analysis toolshttps://github.com/mre/awesome-static-analysisI'm just looking to see what your recommendations are for tools you use specifically in regards to embedded C/C++.Narrow down the choices for me to explore if you will.
Please give a suggestion, STC12C5A60S2 oscillator problem - Page 1
Forum section: electronics / general

author: Berserk
author_rank: Contributor
timestamp: February 10, 2019, 05:45:49 pm
content: Hello Everyone! Please can anyone give me a suggestion what can be cause of strange problem with starting STC12C5A60S2 ?Board on STC12C5A60S2 wouldn't start until I touch oscillator pins with unconnected! multimeter wires, seems like capacitance of wires, ~some pf, make a deal.Recently I tried different oscillators orignal-4mh, 6, 8, 10, 12 mhz, different capacitors 1, 10, 22, 47 pf, nothing working. Power line of a board is fine.Thanks.

author: PCB.Wiz
author_rank: Super Contributor
timestamp: February 10, 2019, 07:42:50 pm
content: Quote from: Berserk on February 10, 2019, 05:45:49 pmUsually, with a Xtal oscillator the CL varies somewhat inversely with Frequency.At 4MHz 1pF and 10pF are certainly small.Even at 12MHz, 1pF and 10pF are small, as they appear in series to the Xtal.22/33/47pF are more usual, and you can check PCB+device+CL match to the Xtal, with a frequency counter on some clock divided pin, and a few samples.At 22MHz, you would be more to the lower end.I think we have tested STC12C5A60S2 at 25MHz, and it was the same Xtal operation as the Atmel MCU we usually use. Dropped straight in.Q: Where is the power decoupling cap for MCU U4 located ?

author: Berserk
author_rank: Contributor
timestamp: February 11, 2019, 02:15:31 am
content: Quote from: PCB.Wiz on February 10, 2019, 07:42:50 pmThank you for reply! I think decoupling cap is C14, and it looks fine 1,2 uf

author: technix
author_rank: Super Contributor
timestamp: February 13, 2019, 05:21:55 am
content: If you can redesign the board, I have been using three-pin ceramic resonators recently. They usually has the correct load capacitors integrated and you just need to ground the middle pin to get it working.

author: Cicero
author_rank: Contributor
timestamp: February 13, 2019, 10:58:06 am
content: Nothing blatantly obvious...but it may be useful to rethink the layout.There the zero decoupling caps for the MCU (in view at least), C14 is quite far away and connected to header J4 instead of as-close-as-possible to the MCU power pins - granted we can't see the underside of the board. Where are the nF caps for higher frequency current requirements? Maybe there are additional caps on the underside perhaps?The crystal layout could also be better, the ground trace runs in a big loop around the outside, I would rather try to minimise the ground loop.
Pickit 4 "Programmer to Go" - Page 1
Forum section: electronics / general

author: yassirreebob
author_rank: Newbie
timestamp: February 13, 2019, 02:28:10 pm
content: Purchased a Pickit 4 because the advertised "Programmer to Go" feature was needed by a client to do field upgrades on their equipment. I was unable to discover how to use this function. I contacted Microchip tech support and was told that that an firmware upgrade was required and that it should be available in September or October. Eight months to write code that reads an SD card and outputs the data? Seventh graders are doing that now with Arduinos.

author: Fire Doger
author_rank: Regular Contributor
timestamp: February 13, 2019, 02:55:57 pm
content: A. Its not 8 months, its 20 months! Pickit 4 was released 1 year ago....B. Pickit 4 work based on scripts to avoid having re-flashing firmware for different families. That's why they have to rewrite all programming routines for every mcu.C. I agree that this is a long time, for marketing reasons they released the hardware without proper software support
ATSAMC21J18A dual CAN - Page 1
Forum section: electronics / general

author: ziehao
author_rank: Newbie
timestamp: February 15, 2019, 09:20:00 am
content: Hi all.I am currently working on the ATSAMC21J series of MCUs, and I read that it has Dual independent CAN controllers as stated inhttp://ww1.microchip.com/downloads/en/AppNotes/Atmel-42464-SAMC21-CAN-BUS-Firmware_ApplicationNote_AT6493.pdfMy question is what exactly does this mean? Is it able to connect to 2 different CANBUS and perform Transmit and Receive functions at the same time and not interfere with each other?Thanks in advance!!

author: Rerouter
author_rank: Super Contributor
timestamp: February 15, 2019, 09:29:10 am
content: Correct, Though you usually wouldn't need 2 independent transceivers n the same bus, as your code would usually be much faster than the canbus dataNormal applications might be hooking into 2 independant canbus networks, either using the data from both or acting as a gateway.

author: ziehao
author_rank: Newbie
timestamp: February 15, 2019, 09:39:29 am
content: Quote from: Rerouter on February 15, 2019, 09:29:10 amThanks!!Another question, though it is not about the CAN module. Not sure if I will need to pose this question in another topic?The datasheet says the ATSAMC21J18 MCU has 6 SERCOM interface. Am I able to use 2 of the SERCOM as USART? Or in an extreme case, all 6 as USART?

author: JPortici
author_rank: Super Contributor
timestamp: February 15, 2019, 09:53:15 am
content: yes.Citing from the datasheet (2016 version)QuoteI was evaluating it 2 years ago for a product that would need to gather data from two networks and communicate only in one of the two. It was rather easy to set up despite ASF (altough i abandoned it quickly to write directly to registers for setup)

author: ziehao
author_rank: Newbie
timestamp: February 15, 2019, 09:57:42 am
content: Quote from: JPortici on February 15, 2019, 09:53:15 amI see. Thank you very much!!
TFT display driver for Cortex M0? - Page 1
Forum section: electronics / general

author: Jester
author_rank: Frequent Contributor
timestamp: February 07, 2019, 10:04:49 pm
content: Disclosure, I'm a hardware guy not a programmer.....I designed a simple PCB using a Cortex M0, and have a blinky LED working, that I compiled using ATMEL Studio v7.0 and downloaded to the board using a Segger J-Link mini. So the part is running and I can program it. Next step is to get the display working and I’m looking for advice.This is the display:https://www.aliexpress.com/item/2-8-SPI-ILI9341-TFT-LCD-Display-240x320-Touch-Panel-Serial-Port-Module-5V-3-3V/32666535328.html?spm=a2g0s.9042311.0.0.8UicH9The interface is SPI, to both the display and touchscreen.FWIW on a previousArduinoCortex M0 project, using the open source Adafruit display and touch-screen libraries; “Adafruit_ILI9341” I was able to do everything I needed to with this display. So those libraries might be the fastest and easiest approach to getting this working under Atmel Studio without the Arduino layer, I’m just not sure how I would incorporate those libraries into this non- Arduino project or if that’s actually possible? If not then possibly a similar open source library?I’m pretty sure this is the library I used:https://github.com/adafruit/Adafruit_ILI9341Is this possibly as simple as including the .cpp and .h files into my main.c and then calling the routines or I’m guessing not quite so simple?

author: picandmix
author_rank: Frequent Contributor
timestamp: February 08, 2019, 09:56:52 am
content: Hi,Use those screens myself, but only with Arduino C++ and though they say SPI you are still faced with 18 i/o lines if you include the SD card.Perhaps consider one of these screens, just TX/RX connection and no problems about screen drivers as its all done by the onboard Arm chip via its own IDE, programmed by usb to ttl converter or SD card.https://www.banggood.com/3_2-Inch-Nextion-Enhanced-HMI-Intelligent-Smart-USART-UART-Serial-Touch-TFT-LCD-Module-Display-Panel-p-1141610.html?cur_warehouse=CN

author: Jester
author_rank: Frequent Contributor
timestamp: February 08, 2019, 10:06:25 pm
content: I already have hardware based on the display I posted, so I'm searching for a solution for that display.I tried importing a working Arduino sketch into AS7, but it does not build.

author: Psi
author_rank: Super Contributor
timestamp: February 08, 2019, 10:31:44 pm
content: Quote from: Jester on February 07, 2019, 10:04:49 pmLooks to be pretty easy, there's not that much code there.It's really just a basic SPI abstraction layer for the display on top of a the Arduino SPI abstraction layer.You'll need to go through and replace any arduino calls with your own ones for your SPI peripheral .eg.initSPI();startWrite();writeCommand();SPI_WRITE16();spiWrite();endWrite();Most of those are simple hardware calls to the SPI peripheral. Writing to the SPI peripheral is dead simple as you don't have to worry about buffering.Ya might want to convert it from C++ to C as well, but maybe that's just me.
recommended training material for SAML21 - Page 1
Forum section: electronics / general

author: mrpackethead
author_rank: Super Contributor
timestamp: February 19, 2019, 09:45:01 am
content: Hi could anyone suggest any good starting material for using the SAML21 with Atmel ASF?

author: JPortici
author_rank: Super Contributor
timestamp: February 19, 2019, 10:26:42 am
content: Hi, i found that the examples were good enough to get started. quite easy to understand.
RGB565 to 24 bit - Page 1
Forum section: electronics / general

author: @rt
author_rank: Super Contributor
timestamp: February 05, 2019, 10:59:22 am
content: Hi GuysI have some source RGB565 images converted to display on 24 bit platforms which look ok:https://imgur.com/a/WlmNaVuBut it occurs to me I’m not quite correct. For Red & Blue channels the maximum value is 31, and for Green, 63.None of these values are evenly divisible by 255, so I’ve just multiplied R&B by 8, and green by 4.The maximum values for this scheme (as in the photo linked above) would then be 248 for Red & Blue, and 252 for Green.Without floating point math (which would be easy), how are you supposed to do this conversion?Images looks ok, but I suspect I’m leaving something out because a plain white image would be slightly green, etc.Cheers.

author: oPossum
author_rank: Super Contributor
timestamp: February 05, 2019, 11:27:05 am
content: Use fixed point.RB: n * 2114 >> 8G: n * 1040 >> 8

author: @rt
author_rank: Super Contributor
timestamp: February 05, 2019, 12:49:14 pm
content: Very nice, thanks

author: DJohn
author_rank: Regular Contributor
timestamp: February 05, 2019, 02:57:58 pm
content: You don't even need to multiply. Just repeat the bits that you've got until the target is full. So 5 bit abcde becomes 8 bit abcdeabc. In software that takes enough masking and shifting that (on a processor with a fast multiply) it might not be worth it. In hardware it's trivial.

author: @rt
author_rank: Super Contributor
timestamp: February 05, 2019, 03:51:18 pm
content: I have a timer set up already, and could time the routine, but it’s a Windows supercomputer, and doesn’t matter for static images.I can’t tell the difference at all, even side by side, but the peace of mind is priceless.https://imgur.com/a/TdeWi4p
STM8: New library for TM1637 4-digit LED module. - Page 1
Forum section: electronics / general

author: rhodges
author_rank: Frequent Contributor
timestamp: February 01, 2019, 07:05:26 pm
content: Hey, STM8 fans! I just put up my library code for the TM1637 4-digit LED module on github:Quotehttps://github.com/unfrozen/stm8_libs/wiki/lib_tm1637:-4-digit-LED-controllerUnlike the TM1638 controller used on a lot of 8-digit LED modules, this controller uses a variation of I2C. There is no slave address, so you can't share the bus easily. And where I2C sends the high bits first, this takes low bits first. Start, stop, and ack are compatible with I2C.Here is my test / example code:https://github.com/unfrozen/stm8_tests/blob/master/test_tm1637.cSo far, my libraries for cheap I/O include three LED controllers (max7219, tm1637, tm1638), generic LCD (2x16 to 4x20) modules, generic matrix keypads, ultrasonic range finder, and rotary encoder. Does anyone have suggestions for other cheap and useful things to connect?