Anyone know if using a 18F4520 works instead of the 18F452? The 452 is obsolete now according to Microchip.com and the 4520 has replaced it and is feature compatible (plus my programmer - pickkit2 - only likes the 4520).
Are you sure it#s really obsolete respectively on Last Time Buy? I just double checked the Microchip web site, and it just says <<not recommended for new designs>> – which is different to a Last Time Buy since the 452 is still available. Can you refer to the Microchip statement that you mentioned? LTB page or something similar?
The 18F4520 uses the Microchip EUSART rather than the standard USART found in the 18F452. All 18F family chips that use the EUSART have a silicon bug that prevents back-to-back interrupt driven transfers on the serial port. This makes them unusable for MIDI applications such as MIOS. I have not tested the 18F4520 but have no reason to believe that Microchip has resolved this problem since they have not published anything to the contrary. So, I say stay away from the 18F4520 and stick to the 18F452 which I am sure will be available for many years to come.
The PIC18F4520 won’t work, I’ve already tested it: it has the same EUSART bug.
Btw.: three weeks ago I felt so bored, that I contacted the microchip support again in order to inform them, that the PIC18F4620 as well as the PIC18F4520 has the same bug. As expected they were not informed about this issue. Two days later they updated the 18F4520 errata sheet and asked me if the bug is in the sheet now (seems to be a more comfortable way than reading my previous messages) — it wasn’t
This discussion is still continuing, in the meantime I sent them two programs which allow to reproduce the bug within one second…
Joy - I’m beginning to hate PICs after all the trouble I’ve seen with recent ones. I wish I’d stuck with big old Z80s and EPROMs/SRAM/discrete on large chunks of stripboard eating tons of juice.
Can’t use a 452 as my programmer doesn’t support it (thank you Microchip!).
My current problem is getting the oscillators to stay stable on my dev board. I’ve tried just about every cap value between 2.2pF and 100pF and the oscs die randomly. The XTAL is a known good one (10MHz). The damn thing just dies after about a minute - it’s not the WDT which is disabled and the IRQ routine just does an RETFIE straight away. It’s got to be stray capacitance as if i stick my scope (philips pm3217) near it or my finger it dies too (meaning i can’t even check the osc drive waveform to make sure it’s stable). I’m a VLSI guy by trade - stray capacitance is my middle name - so this should not be a problem!!
This is an older erratum which only mentions the 9bit mode…
Note that the workaround suggested there is not sufficient for continuous (back-to-back) transmissions over the MIDI interface. E.g., if a SysEx string should be forwarded which is longer than the transmit buffer, a buffer overrun will occur.
Is it possible to use this bugged chips (4550) as companion LCDs. I made a Coreboard that fits behind the S65 Display (at the moment not fully assembled).
yes (but note that nobody has written a companion firmware yet…)
In theory it should also be possible to get the MIDI interface properly running, when an external serial transmitter is used - e.g. via the IIC interface. If Microchip is not able to fix the problem until this summer, this is propably the way I will go (even it will cost me a lot of documentation and support effort…)
No, you don’t have a problem, since you don’t need a MIDI Out, and since I would prefer to use the same pins like for the BankStick for the Tx pin replacement (Soft-IIC, transfer maybe to second PIC with reliable USART, speed is fast enough, second MIDI In would also be possible).
You see: such questions will raise the need for additional documentation and support… :-/