hybridfree/eevblog-posts huggingface dataset:
Get more information about Allwinner F-Series - Page 1
Forum section: electronics / general

author: soFPG
author_rank: Frequent Contributor
timestamp: March 28, 2019, 06:42:24 pm
content: I recently stumbled upon this news from late 2018:https://lore.kernel.org/patchwork/patch/877044/As far as I understand correctly, they added support for the (very) old F-Series ARM7 & ARM5 based CPUs from Allwinner (http://linux-sunxi.org/Allwinner_SoC_Family).Google lists only 5 pages of search results for "f1c100a". Among these results is not a reference manual - only a 39 pages long "datasheet" (http://dl.linux-sunxi.org/F1C100/Allwinner_F1C100_datasheet_20110331.pdf).I don't get how anyone would adapt the linux kernel to a processor with only 39 pages of documentation - no register description whatsoever? How is that possible? How do I get my hands on the reference manual from Allwinner (if I don't want to buy those chips in million quantities)?
CPU clock speed vs bus clock speed - Page 1
Forum section: electronics / general

author: Circlotron
author_rank: Super Contributor
timestamp: March 27, 2019, 10:38:19 pm
content: In AN2717 it makes the following statement:QuoteA HC08 with an 8MHz xtal runs at a bus speed of 2MHz. What do they mean when they say "CPU clock isequalto the bus clock"?

author: sokoloff
author_rank: Super Contributor
timestamp: March 27, 2019, 11:05:39 pm
content: Read the Clocks section immediately prior to the section you quote.QuoteThe CPU clock is not the same as the CPU clock source (via the division described above). When they say the CPU clock is equal to the bus clock, they mean that both run at the same speed. Neither is locked to the clocksource.

author: Circlotron
author_rank: Super Contributor
timestamp: March 27, 2019, 11:46:40 pm
content: Okay... so if we have an 8MHz xtal -HC08 is 2MHz bus and 2MHz CPUHCS08 is 4MHz bus and8MHzCPU?Further, if a particular instruction takes 5 bus cycles does that mean it actually takes 10 CPU cycles? If so, what is the purpose of talking about CPU cycles?

author: PCB.Wiz
author_rank: Super Contributor
timestamp: March 28, 2019, 12:51:20 am
content: Quote from: Circlotron on March 27, 2019, 11:46:40 pmMarketing guys love bigger numbersThe best way to compare core speeds it to look at theopcode rates, and derive say XXns for a NOP (Usually the fastest opcode on most MCUs)Higher MHz internally (divided down) does not help code speed, and does hinder crystal selection as MCU Xtal amplifiers able to oscillate above 32MHz are rare, and impose tight rules on Xtal selection.There is one plus side to higher internal MHz, and that is that PWM timing can be made finer.Some MCUs have Multipliers or PLLs to keep the Xtal MHz sane, but allow more MHz on the timers for better granularity.An extreme example of this in a 8-bit MCU, can be seen in a Sanken MD6602, where they use a 12.5MHz Xtal, a 50MHz CPU clock, and a PLL x80 to give1GHz on PWM !Even with those numbers, Flash access times still bite, and a fetch of 32 bits is MAX of 25MHz.That makes in-line code faster than branches, which have to reload a new flash line.
Problem Using modern C++14 in Keil and LPC series - Page 1
Forum section: electronics / general

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: March 26, 2019, 07:38:43 am
content: Hi,I have started to learn new cool things like c++14, Keil has support for it, I'm trying to use it on LPC1768 for testing for now. it seems that every thing is working, it has support for cool headers like #include <regex> etc...The problem for now is that when I add standard peripherals CMSIS libraries like #include "GPIO_LPC17xx.h" // Keil::Device:GPIOI can not use any of it's functions, like GPIO_PinWrite etc...It would complain like thisQuoteAny one using c++11 or C++14 in keil?

author: alexanderbrevig
author_rank: Frequent Contributor
timestamp: March 26, 2019, 08:23:23 am
content: You must include C files within anextern "C" {}Block to tell the compiler to treat it as C and not do any renaming.

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: March 26, 2019, 08:38:36 am
content: I have done it, not any luck, please take a look at the sample project

author: Nusa
author_rank: Super Contributor
timestamp: March 26, 2019, 11:39:37 am
content: Your file doesn't have those includes inside the extern "C" brackets. Did you try that?

author: ejeffrey
author_rank: Super Contributor
timestamp: March 26, 2019, 07:48:04 pm
content: To make this a bit more clear:If you want to link code compiled by the C compiler with code compiled by the C++ compiler, the C function prototypes have to be enclosed within extern "C" blocks. You can put those inside the header file or around the #include. The extern C {} you have in main.cpp doesn't do anything because there is nothing inside it.

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: March 27, 2019, 09:13:09 am
content: Thanks ejeffrey and NusaQuoteThat solved the problem

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: March 27, 2019, 09:19:25 am
content: The program now complies fineNow the problem is that the program would not work in simulator, when I hit debug it would stuck in the SystemInit function jump in the assembly startup file!The normal c project would do all kinds of simulation for LPC1768, actually when I hit debug it would execute everything and jump to main

author: rstofer
author_rank: Super Contributor
timestamp: March 27, 2019, 08:22:38 pm
content: Quote from: ali_asadzadeh on March 27, 2019, 09:19:25 amIs SystemInit a 'weak' symbol? If so, you are supposed to override it with your own version. Sometimes people put weak symbols in code as a placeholder and they often loop to themselves.

author: ali_asadzadeh
author_rank: Super Contributor
timestamp: March 28, 2019, 06:32:14 am
content: QuoteNo it's not a weak function, it's like this and I have commented it's internal register manipulation for the purpose of being able to use it for debugging in simulation onlyCode:void SystemInit (void)
Did I get FAKE Padauk PMS150C's?? (No I didnt) - Page 1
Forum section: electronics / general

author: abnielsen
author_rank: Contributor
timestamp: March 25, 2019, 09:46:45 pm
content: Just decided to test some SO8 Padauk PMS150C's I got a while ago.They have no markings on the top but have an obscure marking on the bottom like this:YS17RBCWA51851XCDCould this still be PMS150C's or did I get ripped off for 3$ for 100 pcs?When doing the dummy test with the writer (Convert pdk -> Check IC -> O/S test) the writer(PDK5S-p-003) says "IC Ready" and blank check succeeds, but when I use actual code the writer says "O/S test fail"Both with jumper2 and shift 4 for SOP8.Did I get ripped off? Are PMS150C's supposed to have padauk logo on top? What else could they be, if not PMS150C's?Edit: Blank check, not black check.

author: ataradov
author_rank: Super Contributor
timestamp: March 25, 2019, 10:11:15 pm
content: Those sound like legitimate parts. Padauk is known for only putting markings on the bottom, and the part number format looks like Padauk parts.

author: oPossum
author_rank: Super Contributor
timestamp: March 25, 2019, 10:26:06 pm
content: I got several different Padauk MCU from LCSC and none are marked on the top. They are marked on the bottom, but not with the part number.

author: abnielsen
author_rank: Contributor
timestamp: March 25, 2019, 11:03:41 pm
content: Thank you both!Maybe I botched the solder job with the jumper header I made for R2 and there’s a bad connection my DMM missed - for some reason there wasn’t a jumper header included with my writer.

author: NiHaoMike
author_rank: Super Contributor
timestamp: March 25, 2019, 11:32:51 pm
content: Considering how little documentation there is about some details like the programming protocol, making a fake that works wouldn't be easy at all, likely harder than just engineering and selling your own design for super cheap microcontrollers.

author: abnielsen
author_rank: Contributor
timestamp: March 26, 2019, 08:06:42 am
content: I just got confirmation from Padauk - RBCWA5 is the batch number in my case and all is good!Thanks again!
identify Chip and board - Page 1
Forum section: electronics / general

author: Daxxin
author_rank: Regular Contributor
timestamp: March 24, 2019, 04:06:03 pm
content: what logic chip is this , and this board ?

author: amyk
author_rank: Super Contributor
timestamp: March 24, 2019, 06:56:41 pm
content: My guess is a gate array.

author: lucazader
author_rank: Regular Contributor
timestamp: March 24, 2019, 08:17:48 pm
content: I would think that 50MHz crystal would be a bit fast for a plain gate array..?Maybe a CPLD or FPGA?

author: obiwanjacobi
author_rank: Super Contributor
timestamp: March 25, 2019, 11:32:42 am
content: Let me see, uhmmm LDSP1400....A DSP perhaps?

author: Gyro
author_rank: Super Contributor
timestamp: March 25, 2019, 08:29:01 pm
content: I didn't go as far as the registration and login information required to access the pdf datasheet link...https://www.jotrin.com/product/parts/LDSP1400QC_35
Programmed to fail - Page 1
Forum section: electronics / general

author: PerranOak
author_rank: Frequent Contributor
timestamp: March 23, 2019, 03:04:23 pm
content: I have my project up and running and am going to get a PCB made.While developing I would take the uC out of the circuit (ZIF), programme it then put it back. How do I incorporate programming for the uC when installed permanently on the PCB? Will the other components not interfere with the programming even if there is no power connected?

author: fchk
author_rank: Frequent Contributor
timestamp: March 23, 2019, 03:30:33 pm
content: Quote from: PerranOak on March 23, 2019, 03:04:23 pmNo, thats the wrong way. You need to implement an ICSP header in order to program the controller within the circuit.Just read this:https://ww1.microchip.com/downloads/en/DeviceDoc/51795B.pdfThe PGC and PGD pins should not be used otherwise if possible.fchk

author: PerranOak
author_rank: Frequent Contributor
timestamp: March 23, 2019, 05:26:25 pm
content: Ah, thank you.Are PGC and PGD the same as ICSPCLK and ICSPDAT?I have these connected to the anodes of common cathode 7-seg LEDs via current limiting resistors. If I connect directly to the pins, will this be ok?

author: fchk
author_rank: Frequent Contributor
timestamp: March 23, 2019, 06:39:39 pm
content: Quote from: PerranOak on March 23, 2019, 05:26:25 pmYes, just other namesQuote from: PerranOak on March 23, 2019, 05:26:25 pmIf you want to play safe ISTRONGLYadvise you not to use PGC and PGD for anything else. The added load could disturb the programmer. If you absolutely must, use buffers to isolate the load from the PGC/PGD pins.And keep in mind that on 8 Bit PICs (PIC10/12/16/18) MCLR can rise up to 13.5V during programming and protect logic being connected to it.fchk

author: PerranOak
author_rank: Frequent Contributor
timestamp: March 24, 2019, 12:12:01 pm
content: Blimey, thank you very much.
EEPROM 24xx1025 * 24xx1025 support in PICKitPlus for PICKIT2 and PICKIT3  - Page 1
Forum section: electronics / general

author: Anobium
author_rank: Regular Contributor
timestamp: March 24, 2019, 07:59:24 am
content: Thought it would be worthwhile sharing an update to the software.PICkitPlus now supports programming the 24xx102x EEProms with a Microchip PICkit 2 or PICkit 3 programmers. New functionality in the software to correctly handle addressing and communications. Also, updated our documentation to provide insights to programming with the PICKit3 programmer.Also, we have updated the parts database to support these large EEPROMs. Seehttps://github.com/Anobium/PICKitPlusfor R197.Anobium
HLVD interrupts 4 times per event on  pic18f27J53 - Page 1
Forum section: electronics / general

author: spinnaker
author_rank: Regular Contributor
timestamp: March 22, 2019, 11:39:12 pm
content: I have a pic18f27J53 which has HLVD. I have everything working the way I want except that each event interrupts 4 times. That doesn't seem right. I have been able to code around it but just does not seem like I should have to.Has anyone use HLVD?Code:#include <xc.h>#define LOW_POWER_SETPOINT 0b1001#define NORMAL_POWER_SETPOINT 0b1010#define _XTAL_FREQ 8000000unsigned interruptCount = 0;#define DETECT_LOW_POWER 0#define DETECT_NORMAL_POWER 1unsigned char detectPowerMode = 0;unsigned char enterSleep = 0;void main(void){OSCCONbits.IRCF0 = 1;OSCCONbits.IRCF1 = 1;OSCCONbits.IRCF2 = 1;TRISAbits.TRISA0 = 0;TRISAbits.TRISA1 = 0;LATAbits.LATA0 = 1;OSCCONbits.IDLEN = 0;HLVDCONbits.HLVDEN = 0; // Disable HLDVHLVDCONbits.HLVDL = LOW_POWER_SETPOINT; // Set point to low valueHLVDCONbits.VDIRMAG = detectPowerMode; // Interrupt when voltage dropsPIR2bits.HLVDIF = 0; // Clear the HLVD interrupt flagHLVDCONbits.HLVDEN = 1; // Enable HLDVRCONbits.IPEN = 1;INTCONbits.GIEH = 1; // Enable general interrupts highPIE2bits.HLVDIE = 1; // Enable low voltage detect interruptwhile(1){LATAbits.LATA1 = 0;__delay_ms(100);LATAbits.LATA1 = 1;__delay_ms(100);if (enterSleep)Sleep();}return;}__interrupt(high_priority) void interrupts_highPriority(void){if (PIR2bits.HLVDIF == 1){PIR2bits.HLVDIF = 0;interruptCount++;if (interruptCount<4)return;interruptCount=0;if (detectPowerMode == 1){LATAbits.LATA0 = 1;detectPowerMode = DETECT_LOW_POWER;HLVDCONbits.HLVDEN = 0;HLVDCONbits.HLVDL = LOW_POWER_SETPOINT;HLVDCONbits.VDIRMAG = detectPowerMode;HLVDCONbits.HLVDEN = 1;enterSleep=0;}else{LATAbits.LATA0 = 0;detectPowerMode = DETECT_NORMAL_POWER;HLVDCONbits.HLVDEN = 0;HLVDCONbits.HLVDL = NORMAL_POWER_SETPOINT;HLVDCONbits.VDIRMAG = detectPowerMode;HLVDCONbits.HLVDEN = 1;enterSleep =1;}}}
Interface compact flash to Processor memory interface  - Page 1
Forum section: electronics / general

author: rakeshm55
author_rank: Regular Contributor
timestamp: March 22, 2019, 04:56:34 am
content: How to interface compact flash to memory interface of a processor?? eg GPMC interfaceIs the interface similar to NAND??...How hard is it to bring up the interfacePlease share some example designs for the same... If OS like linux in involved is it advisable to choose such an interface for Kernel as long as there is no support??

author: viperidae
author_rank: Frequent Contributor
timestamp: March 22, 2019, 05:13:40 am
content: Compact flash uses a standard ATA interface like an old ide hard drive

author: rakeshm55
author_rank: Regular Contributor
timestamp: March 22, 2019, 07:34:33 am
content: Wont it allow for 8bit 16 bit access from Host machine?? other than true IDE modePC Card Memory Mode, PC card IO modelike Common Memory Mode or I/O modehttp://pdf.datasheetcatalog.com/datasheet/MitsubishiElectricCorporation/mXyzqtuu.pdf

author: legacy
author_rank: Super Contributor
timestamp: March 22, 2019, 10:25:41 am
content: Quote from: viperidae on March 22, 2019, 05:13:40 amCF-ATA, electrically it's the same, but it's a subset of the protocol.I know because we (at DTB) are using a router for aprojectwith a CF interface, and ... we had to modify the ata-kernel-module with patches specific for the CF-ATA.
"Wireless" Arduino Mega 2560 board ? - Page 1
Forum section: electronics / general

author: WaveyDipole
author_rank: Frequent Contributor
timestamp: March 20, 2019, 05:46:52 pm
content: I'm not sure if I can put a link to the auction on here, but I have seen several of these for sale on eBay described as "Wireless 2560 R3 Mega2560 REV3 ATmega2560-16AU" Board For Arduino Module". Now, there slightly more expensive boards with an ESP8266 chip included on the board which are clearly identified with ESP8266 in the title and the dark PCB, so clearly these do have WiFi. However, there are other boards described as "wireless" Mega 2560 boards of the "Elegoo" variety that do not seem to have an ESP8266 or other WiFi controller on board, just a 16u2. Having checked the datasheet, I the 16u2 does not seem to be capable of providing wireless functionality (neither WiFi or BlueTooth), so how is it that these boards are described as "wireless"?

author: Buriedcode
author_rank: Super Contributor
timestamp: March 21, 2019, 01:45:56 am
content: Probably just copy/pasted from other auctions of similar boards that actually had wireless capability (be it 433M/868M/2.4G etc..). Often large ebay shops that sell these things have no idea what they actually are, so they just buy up stock, copy the details from other auctions and put em up. I have no idea what Elegoo is, probably just an Arduino clone?

author: oPossum
author_rank: Super Contributor
timestamp: March 21, 2019, 01:49:14 am
content: wireless --> no USB cable included

author: bitseeker
author_rank: Super Contributor
timestamp: March 21, 2019, 04:34:42 am
content: Ding, ding, ding! oPossum wins. This is the same error as the "wireless" grounding straps. It literally means it doesn't include the wire/cable.

author: WaveyDipole
author_rank: Frequent Contributor
timestamp: March 21, 2019, 10:38:00 am
content: Quote from: oPossum on March 21, 2019, 01:49:14 amThanks for pointing that out! Now that you have mentioned it, and having looking again, it seems that although one of the images features a cable plugged into the USB port, there is indeed no mention in the listing detail that such a cable is actually included. There are also some slightly different listings that actually show a separate USB cable and most of such listings do state that one is included (sometimes described as a "free USB cable") although naturally the selling price is usually higher.Anyone who thought they were getting a cheaper WiFi capable board will be disappointed!Caveat emptor.

author: bitseeker
author_rank: Super Contributor
timestamp: March 21, 2019, 05:43:05 pm
content: Yes, caveat emptor whenever reading materials written in a language that is not native to the country/company/person writing it.Common electronics gotchas on eBay, AliExpress, etc.:What they writeWhat it (usually) isWirelessWire/cable not included4-bit display4-digit displayNixie displayLED or vacuum fluorescent displayDigital tubeLED
Surge protection for teensy 3.5 - Page 1
Forum section: electronics / general

author: reggiewatterson
author_rank: Newbie
timestamp: March 20, 2019, 06:27:25 pm
content: Surge protection for teensy 3.5 on switching power supplies 60A 5V used for Led light panel. Suggestions?

author: ajb
author_rank: Super Contributor
timestamp: March 21, 2019, 03:37:05 am
content: What sort of surges? From what? On the power rail, or on IO pins? If on IO pins, what sort of signals need to pass? How many lines?

author: reggiewatterson
author_rank: Newbie
timestamp: March 21, 2019, 03:56:51 pm
content: Good morning, right now I am powering up the teensy along with 3500 Leds on the two power supplies. So that is the main power rail. In order to protect the teensy from the start up or any surges it might be worth while to isolate it from the main lead.
Color sensor and Basys3 with VHDL - Page 1
Forum section: electronics / general

author: kmesne
author_rank: Newbie
timestamp: March 18, 2019, 06:11:39 pm
content: Hi, I need to make a circuit which does the following thing:When it sees a red object it will send output 0 until it sees a green object (like a well colored cubic toy), after it sees green it will send output 1 until it sees red again. ( If it is hard to implement I'm ok with just output 0 when it sees red and outputs 1 when it sees green, I mean it is ok if the outputs not continuous but it would be great if they are continuous)I have basys3 and have to use VHDL. I think I should use TCS34725 sensorhttps://www.adafruit.com/product/1334but I'm not sure I just assumed, I would be really glad if someone helpsSome extra questions: If it is possible I will implement it on a toy RCcar is it possible to connect it with Bluetooth module to get inputs or how should I do it ?- I can use another board JUST FOR CONNECTIONS my main Project should be on BASYS-3Thanks

author: hamster_nz
author_rank: Super Contributor
timestamp: March 18, 2019, 10:00:12 pm
content: Serious questionWhat have you done since the last posthttps://www.eevblog.com/forum/microcontrollers/greenred-detector-and-button-controlled-car-(basys3vhdl)/... Other than also post it twice on Reddit and the Digilent forums?

author: mrflibble
author_rank: Super Contributor
timestamp: March 19, 2019, 04:22:23 am
content: Quote from: hamster_nz on March 18, 2019, 10:00:12 pmWell, clearly a lot more serious work has been done besides that:https://www.edaboard.com/showthread.php?383022-Green-Red-detector-and-button-controlled-car-(BASYS3-VHDL)&p=1643382#post1643382https://forums.xilinx.com/t5/General-Technical-Discussion/Color-Sensor-with-Basys3-VHDL/m-p/951181https://thefpgaforum.com/threads/green-red-detector-and-button-controlled-car-basys3-vhdl.82/#post-507Serious middle management potential!

author: agehall
author_rank: Frequent Contributor
timestamp: March 21, 2019, 06:51:45 am
content: If all that time was spent learning VHDL and typing code instead of forum posts, the project would have been done a long time ago.
Variable Clock Divider  - Page 1
Forum section: electronics / general

author: Sparky49
author_rank: Regular Contributor
timestamp: March 20, 2019, 12:05:37 am
content: I'm in the process of designing a project with a Cyclone IVE. Part of this requires creating an adjustable clock to put out. I've so far settled on using the ALTPLL from the Altera IP Catalog to achieve this ( in reconfigurable mode). However, I still need to calculate the values for M, N and C in the PLL for a given frequency, whereFout = (Fin * M)/(N*C)Fin = input freqFout = output freqM = counter (multiplier) part of clk feedbackN = counter (divider) part of clk feedbackC = post-scale counter (divider)But I am at a loss as to how I could calculate these three values. I also have a nios ii processor running on this device, so an implementation could easily be done in C rather than a HDL. How could I arrive at these three values to give an accurate, given Fout when I have a fixed Fin?Many thanks in advance.

author: hamster_nz
author_rank: Super Contributor
timestamp: March 20, 2019, 03:50:30 am
content: Code:f_in = ???? << Your input frequencyf_Vco_max = ??? << From the datasheet, for your FPGA's speed gradef_Vco_min = ??? << From the datasheet, for your FPGA's speed gradefor all possible m valuesf_Vco = Fin * mif f_Vco >= f_Vco_min and f_Vco <= f_Vco_max thenfor all possible n valuesf_out = f_Vco / nif f_out = F_desired thenwrite "Values are " m " and " nendloopendloopIf you intend to use the post-scaler, you will need a third loop to try different 'C' values.Edit: Having a quick look at the data sheets, the PLL internal VCO operating range is 600 — 1300 MHz, but don't trust me on that one.
Replacing PIC16C505 with PIC16F505 - Page 1
Forum section: electronics / general

author: perdrix
author_rank: Frequent Contributor
timestamp: March 17, 2019, 05:36:49 pm
content: If I insert a programmed 16C505 into a programmer and read it, can I then write the image to a PIC16F505 and just plug it into the existing circuit?Would I be correct in thinking that if I try to read a protected 16C505 I will get a nastygram from my programmer?ThanksDavid

author: Niklas
author_rank: Frequent Contributor
timestamp: March 18, 2019, 08:17:44 am
content: Not sure that you will get any warnings if the part is read protected. The easiest way to find out is to check the hex file read from the part and see if the address range 0x0000 to 0x00FF contains anything else than 00 or FF.

author: perdrix
author_rank: Frequent Contributor
timestamp: March 18, 2019, 10:08:09 am
content: No its not zero or FF. So I *think* it read OK. However still want to know if I can replace with PIC16F505.Thanks

author: up8051
author_rank: Frequent Contributor
timestamp: March 18, 2019, 11:53:16 am
content: Show the sample of readed data.Did you copy configuration bits?

author: perdrix
author_rank: Frequent Contributor
timestamp: March 18, 2019, 12:10:45 pm
content: Quote from: up8051 on March 18, 2019, 11:53:16 amData: Intel hex formatCode::100000002500090C24000A0C0A09A304A50B84018D:100010006000A40284011F0E4307070A0008FF0FB7:10002000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0F60:10003000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0F50:10004000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0F40:10005000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0F30:10006000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0F20:10007000FF0FFF0FFF0FFF0FFF0FFF0FFF0FFF0F10:100080000000000000000000000000000000000070:100090000000000000000000000000000000000060Config bits - Dunno - just told the rommer to read the IC

author: perdrix
author_rank: Frequent Contributor
timestamp: March 18, 2019, 02:16:26 pm
content: I think that this may be a non starter as the config word is 0400 AFAICT which I think says "Write Protected" and "INTRC Osc/GP4"All memory from x'80' to x'7ff' is read as zerosDave

author: up8051
author_rank: Frequent Contributor
timestamp: March 18, 2019, 07:22:08 pm
content: It is protected.From datasheet:7.10 Program Verification/Code ProtectionIf the code protection bit has not been programmed,the on-chip program memory can be read out forverification purposes.The first 64 locations and the last location (OSCCAL)can be read, regardless of the code protection bit setting.
kernel 4.* what is the process "bioset" ? - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: March 18, 2019, 02:37:26 pm
content: so I have noticed a lot of processes "bioset" and it's not clear what it is.Code:# ps -a | grep bioset860 ? 00:00:00 bioset863 ? 00:00:00 bioset866 ? 00:00:00 bioset869 ? 00:00:00 bioset872 ? 00:00:00 bioset875 ? 00:00:00 bioset878 ? 00:00:00 bioset881 ? 00:00:00 bioset884 ? 00:00:00 bioset885 ? 00:00:00 bioset886 ? 00:00:00 bioset887 ? 00:00:00 bioset888 ? 00:00:00 bioset889 ? 00:00:00 bioset890 ? 00:00:00 bioset891 ? 00:00:00 bioset892 ? 00:00:00 bioset893 ? 00:00:00 bioset894 ? 00:00:00 bioset895 ? 00:00:00 bioset896 ? 00:00:00 bioset897 ? 00:00:00 bioset898 ? 00:00:00 bioset899 ? 00:00:00 bioset932 ? 00:00:00 bioset935 ? 00:00:00 biosetthe whole rootfs is an embedded stage4, profiled to be a router device, so it's really weird.Kernel linux v4.9.6Googling made me more confused about this

author: HwAoRrDk
author_rank: Super Contributor
timestamp: March 18, 2019, 03:00:53 pm
content: This may help explain:http://johanlouwers.blogspot.com/2017/10/oracle-linux-digging-into-bioset-kernel.html

author: legacy
author_rank: Super Contributor
timestamp: March 18, 2019, 03:20:05 pm
content: thanks a lot! This does clarify!
AVR VQFN body pad, is it GND? - Page 1
Forum section: electronics / general

author: Simon
author_rank: Unknown
timestamp: March 18, 2019, 09:14:26 am
content: The datasheet for a mega 644 states:The large center pad underneath the VQFN/QFN/MLF package should be soldered to ground on the board to ensure good mechanical stability.Does this mean that the pad is ground or that they just want it mechanically tied to ground planes on the assumption any plane will be GND and it can't do no harm?

author: wraper
author_rank: Unknown
timestamp: March 18, 2019, 09:22:23 am
content: It may or may not function as GND (depends on chip) however it should be connected to GND regardless.

author: wraper
author_rank: Unknown
timestamp: March 18, 2019, 09:33:13 am
content: It may be simply connected to substrate, in such cases it often can be left floating. However in general it's a good idea to connect it to GND for EMI and heat sinking reasons. If voltage is applied to substrate it may cause change of IC performance or even cause malfunction.

author: Simon
author_rank: Unknown
timestamp: March 18, 2019, 09:50:34 am
content: Well I am just as happy with it being ground, would be better if it is electrical ground as it's there but it is what it is. Given that I have to meet EMC requirements a big peice of ground as close as possible to the die goes down a treat.

author: KL27x
author_rank: Super Contributor
timestamp: March 18, 2019, 09:52:03 am
content: Can't answer that, but I can say I connect the ground pins of my QFN microcontrollers to the center pad with traces. Don't know if this is acceptable by w/e standards other people have to follow, mind you. But it doesn't seem to cause any problems in assembly. I have had such boards populated by PCB fabs in China as well as hot air and iron, by hand.
ESP12E sanity check - Page 1
Forum section: electronics / general

author: bson
author_rank: Unknown
timestamp: March 18, 2019, 02:06:43 am
content: I've never used any of the ESP8266 based modules, so got a couple of ESP12E's off, uhm, eBay. Yeah, go ahead, chastise me.Here's my basic hookup for it, to an STM32F103RG in BGA-144.The basic idea is a install a jumper on J7 to set boot_sel[2:0] to 001, to flash it over the serial port. Using a computer or laptop, or even rpi, flash it with an SPI based slave implementation. PE2, PE3, PA0, UART4 are left in their default reset state (floating input). PA0 will eventually provide a means for the slave to wake the master or request attention.Once I have it working I'll add flashing and firmware updates from the µC. It has two 512k flash banks so can hold both its own code and the ESP12E's. On startup it will connect to the ESP module, check if it's up to date with its own flash, and if not update it. It will do this by pulling bootsel[1:0] low (GPIO2 has an internal weak pullup), jogging nRST, and conversing to the boot loader over UART4. At some point I'll look into conversing to it over SPI instead. The idea is the µC downloads an update into its inactive flash bank, and notifies the user (touch LCD) that there is a firmware update, press to restart. At that point it flips banks and boots the updated firmware. As part of the boot it checks the ESP slave and updates it too if it differs. This way firmware can be backed out as well; an earlier version will similar back out the slave.Eventually the J5, J7 connectors can go away or be left unpopulated.Since I have never used these before I'm wondering if I'm missing anything obvious?The module seems to be decoupled on board...USART2 is just a console and has nothing to do with the ESP12E module.

author: krho
author_rank: Regular Contributor
timestamp: March 18, 2019, 05:36:44 am
content: afaik you need at least 100uF on module's Vcc pins otherwise you'll have problems. And even this might not be enough.

author: bson
author_rank: Unknown
timestamp: March 18, 2019, 07:18:30 am
content: Ah, I was wondering about that. I'll drop in a cap!
Failed to copy PIC16C505 - Page 1
Forum section: electronics / general

author: perdrix
author_rank: Frequent Contributor
timestamp: March 17, 2019, 09:04:22 pm
content: I read one of these with a Galep-IV and then wrote the image to a new one and it verified just fine.However when I tried in the original circuit, it didn't work. Did I do something wrong?ThanksDavid

author: up8051
author_rank: Frequent Contributor
timestamp: March 17, 2019, 09:11:16 pm
content: Maybe original is protected?
Lattice ICE TEchnology Library - for Radiant - Page 1
Forum section: electronics / general

author: ralphrmartin
author_rank: Frequent Contributor
timestamp: March 17, 2019, 11:48:00 am
content: I seem to be having problems finding some Lattice documentation, and wonder if someone out there can point me in the right direction.I want to start using an upduino v2 with Lattice Radiant.For IceCube (which seems to have been superseded) there is a document "Lattice ICE Technology Library", detailing various primitives which can be used to set up clocks, LED drivers, etc. These primitives have changed in Lattice Radiant, as detailed in a "Migration Guide" document.However, as I am designing from scratch, I dont want to look up the old way of doing it, then separately how to translate that for Radiant. I just want the equivalent document for Radiant to the "Lattice ICE Technology Library" document.Despite extensive googling, I just can't seem to find one. Surely such a document must exist? Can anyone give me a link to it?Thanks!

author: 1Ghz
author_rank: Unknown
timestamp: March 17, 2019, 01:10:59 pm
content: More information on Radiant Primitives, refer to the Radiant Help under FPGA Libraries Reference Guide.Radiant Help:http://www.latticesemi.com/-/media/LatticeSemi/Documents/Help/Radiant10_Help.ashx?document_id=52265

author: SiliconWizard
author_rank: Super Contributor
timestamp: March 17, 2019, 05:35:12 pm
content: You can also open the Radiant help from within Radiant itself (it's HTML-based, opens in your default browser).Section: Reference Guides / FPGA Libraries Reference Guide / Primitive Library

author: ralphrmartin
author_rank: Frequent Contributor
timestamp: March 17, 2019, 07:08:02 pm
content: Quote from: 1Ghz on March 17, 2019, 01:10:59 pmThanks. That's what I was after.
installing gattlib for python3? - Page 1
Forum section: electronics / general

author: conducteur
author_rank: Regular Contributor
timestamp: March 15, 2019, 12:09:22 pm
content: Hello,I try to run the examples for bluetooth low energy in the pybluez module, but they require the gattlib module.I triedCode:'pip3 install gattlib'but this fails with following error:Code:/usr/bin/ld: cannot find -lboost_python-py34What does this mean and how can i fix it?

author: legacy
author_rank: Super Contributor
timestamp: March 15, 2019, 12:22:32 pm
content: it sounds you need a library, lib_boost_python-py34, which is probably not currently installed

author: mrflibble
author_rank: Super Contributor
timestamp: March 17, 2019, 05:34:26 pm
content: Quick bit of generic python advice: if you value your time and/or sanity, I suggest you usevirtualenvwrapperfor all your pip-ing pleasure.And generic file-xyz-not-found-how-do-I-solve-that advice, assuming you're using ubuntu:Code:apt-file search libboost_python-pyThatapt-file searchwill give you a list of candidate files & packages that you're probably looking for. So for example you could get something like this output:Code:libboost-python1.62-dev: /usr/lib/x86_64-linux-gnu/libboost_python-py27.alibboost-python1.62-dev: /usr/lib/x86_64-linux-gnu/libboost_python-py27.solibboost-python1.62-dev: /usr/lib/x86_64-linux-gnu/libboost_python-py36.alibboost-python1.62-dev: /usr/lib/x86_64-linux-gnu/libboost_python-py36.solibboost-python1.62.0: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.62.0libboost-python1.62.0: /usr/lib/x86_64-linux-gnu/libboost_python-py36.so.1.62.0libboost-python1.65-dev: /usr/lib/x86_64-linux-gnu/libboost_python-py27.alibboost-python1.65-dev: /usr/lib/x86_64-linux-gnu/libboost_python-py27.solibboost-python1.65-dev: /usr/lib/x86_64-linux-gnu/libboost_python-py36.alibboost-python1.65-dev: /usr/lib/x86_64-linux-gnu/libboost_python-py36.solibboost-python1.65.1: /usr/lib/x86_64-linux-gnu/libboost_python-py27.so.1.65.1Fairly self-explanatory, so nuf said about that.To install both & update the apt-file db:Code:apt-get install virtualenvwrapper apt-file && apt-file updateAs for virtualenvs,read the docson how to activate it & general mode of operation. And after you have enabled virtualenvs as per the docs, do something like this:Code:mkvirtualenv --python=$(which python3) some-project-involving-pybluez-py3pip3 install pybluezThat would create a new virtualenv for your project, and install the pybluez python package ... and all it's dependencies.And all that without fucking up other dependencies of other projects that you might have pip-installed. As bonus feature it also does not clash with system installed python libraries with a conflicting version. Without virtualenvs those are an endless source of fun, enjoyment and teachable moments.Caveat:mkvirtualenvtakes care of python dependencies, not dev packages and such. But usually the"What dev packages should I install?"is answered in the docs, and at least 234786345random postsor github"my shit doesn't work"bug reports.Hope that helps.
Floating point Square-root IP produces incorrect results in LogiCORE v5.0!!! - Page 1
Forum section: electronics / general

author: javad2040
author_rank: Contributor
timestamp: March 17, 2019, 07:45:34 am
content: Hello guys,I design Spartan6 FGPA board that have ADC and SDRAM and i want to capture data and take RMS with LogiCORE v5.0 IPs. I use one Multiplier , Adder, Fixed-to Float and Square-root Floating-point IP.In first step, the Latency and cycle/operation parameters of Square-root is set to 1 that the result produced correctly (I multiply the 14 and 15 decimal values by Multiplier IP and add it with 15, the produced value send to Fixed-to_Float IP and the result of it that is double-precision Floating-Point send to Square-root IP and the 15 decimal value produced that it is correct).for next step, i increase the Latency and cycle/operation values that the result is correct, but when the Latency and cycle/operation is sets to 57 and 51 respectively, the result is incorrect.(blew figure)the square-root of 225 value in floating-point system is 402E00 Hex but in blew figure the result is 402000 HEX that isn't correct.Hint 1: In all steps the handshake signals of Fixed-to-float and Square-root unit(operation_nd, operation_rfd and opreation_rdy) not works but result produced.Hint 2: I use LogiCORE v6.0 that IPs is AXI-based. the result produced correctly and handshake signals works fine.Question 1 : In this project, the resource consumption is important, which IP is better for my project : LogiCore v5.0(without AXI) or LogiCore v5.0(AXI-based) ?Question 2 : How i can solve the problems that LogiCORE v5.0(without AXI) IPs work correctly?best regards
Pellet controller board  with pic32 only runs in debug mode after power error - Page 1
Forum section: electronics / general

author: luc.derveaux@hotmail.com
author_rank: Newbie
timestamp: March 15, 2019, 03:16:04 pm
content: Hello everybody, I have a board from my pelletoven not working any more. After a quick search I noticed that the powerblock was not working any more. I replaced it with the identical power modul. Powering up on the display you can see 28 09 10 in the right corner under. Also a green led is lighting indicating that the pic32mx was working.The buttons on the displaypanel were not working , not active even no led activaty.connecting the board via usb with my pc and starting mplab after 10 minutes a red led is start to work and the normal menu is showen on the display.disconnecting the power of the motherboard and leaving the usb cable connected to my pc keeps the board active. If I power up again the menu appears directly.disconnecting the usb cable the menu disappears and onlu 28 09 10 is showing back on the screen.So the thinking is that the board runs in debug mode. something went wrong when the powermodule went bad.The manufacturer of the pellet stove is not active any more, so I cannot go to their support.Any one with a idea what can be done ?Thank you

author: NorthGuy
author_rank: Super Contributor
timestamp: March 15, 2019, 04:34:40 pm
content: Such things usually happen when you have unconnected ground. The USB connection provides good ground and everything works.It's not a debug mode For debugging, you would need to re-program the PIC.
4G modem with M.2 interface - Page 1
Forum section: electronics / general

author: Freddie Chopin
author_rank: Regular Contributor
timestamp: March 20, 2019, 09:48:32 pm
content: Can someone recommend a modem which meets all following requirements:- 4G,- M.2 interface with USB,- available for purchase in reasonable amounts,- will most likely be available for purchase in the near future (; ,- good cooperation with lwip TCP/IP stack via ppp.For now I'm trying to use Huawei me906e, but is seems to be resisting my attempts quite well...http://lists.nongnu.org/archive/html/lwip-users/2019-03/msg00056.htmlI also did not manage to use it in Linux, even though the modem is not broken - it works in Windows. Due to these problems I'm starting to wonder about some alternatives, which could be easier to work with when paired with lwip.Thanks in advance!
PIC18F2620 AND ENC28J60 - Page 1
Forum section: electronics / general

author: Sammak65
author_rank: Newbie
timestamp: March 07, 2019, 05:28:17 pm
content: HelloI'm using enc28j60 ethernet controller and PIC18F2620 as a webserver to control some relay in a power system.I notice that some time when there is any noise or spark like when contactor latch in a distance of 30cm can cause to make the enc28j60 to hungs or replay to ping with a high delay even when the noise is stopped the cotroller keeps hungs or have a high ping delay.I used a cap on vcc and 5vspd on thernet pins but not fix the problem .So any advice to solve the problem.Best regards

author: Pack34
author_rank: Frequent Contributor
timestamp: March 14, 2019, 03:10:13 am
content: Can you elaborate and provide a diagram or schematic? How do you have everything powered?
Lattice MachXO SPI: Limit to 256 bytes? - Page 1
Forum section: electronics / general

author: gregoireg
author_rank: Contributor
timestamp: March 13, 2019, 10:05:30 pm
content: I'm using MachXO3 from Lattice with the hardened SPI master. There is a reference design available here:http://www.latticesemi.com/view_document?document_id=45882I'm using master_spi.v and master_spi_ctrl.v from this zip archive. I put it here too:https://pastebin.com/K9nWcEAaandhttps://pastebin.com/VVFQ33yEIt's working correctly as long as the transfer size (MOSI) is < 256 bytes.I would like to transfer more than 256 bytes in the same transaction. So, I have patched those two files with the following diff:Code:--- a/master_spi.v2019-03-13 12:31:58.290680248 -0700+++ b/master_spi.v2019-03-13 12:30:07.718754565 -0700@@ -60,7 +60,7 @@input usr_req, //high indicates a valid user command is readyinput [7:0] usr_cmd, //user command, see RD1125 for more detailsinput [7:0] usr_portaddr, //user port number or address, see RD1125 for more details-input [7:0] usr_xfer_size, //xfer size for memory read/write+input [11:0] usr_xfer_size, //xfer size for memory read/writeoutput usr_cmd_done, //pulse signal to indicate end of transactioninput [7:0] usr_wdata, //write dataoutput usr_wdata_rdy, //pulse signal to indicate expected next usr_wdata--- a/master_spi_ctrl.v2019-03-13 12:32:07.722677313 -0700+++ b/master_spi_ctrl.v2019-03-13 12:29:55.038768211 -0700@@ -64,7 +64,7 @@input wire usr_req, //high indicates a valid user command is readyinput wire [7:0] usr_cmd, //user command, see RD1125 for more detailsinput wire [7:0] usr_portaddr, //user port number or address, see RD1125 for more details- input wire [7:0] usr_xfer_size, //xfer size for memory read/write+ input wire [11:0] usr_xfer_size, //xfer size for memory read/writeoutput reg usr_cmd_done, //pulse signal to indicate end of transactioninput wire [7:0] usr_wdata, //write dataoutput reg usr_wdata_rdy, //pulse signal to indicate expected next usr_wdata@@ -101,7 +101,7 @@reg status_rrdy /*synthesis syn_preserve = 1*/;reg [8:0] nxt_state ;reg [8:0] cur_state /* synthesis syn_encoding="original" */;-reg [7:0] byte_cnt;+reg [11:0] byte_cnt;reg start_write_data;reg start_read_data;reg wb_cyc_reg ;@@ -110,7 +110,7 @@reg [7:0] wb_adr_reg ;reg [7:0] wb_dat_i_reg;reg [7:0] usr_header_size;-reg [7:0] usr_data_size;+reg [11:0] usr_data_size;reg transaction_with_portaddr;reg transaction_write;reg [7:0] tmp_spi_wdata;But the transfer is still limited to 256 bytes. I want to transfer 260 bytes, it transfers only 4 bytes. What am I missing else?
Green/Red detector and button controlled car (BASYS3/VHDL) - Page 1
Forum section: electronics / general

author: kmesne
author_rank: Newbie
timestamp: March 13, 2019, 08:38:38 pm
content: Hi, I am a 2nd-year ee student, and I need to make a term Project. With BASYS3 by using VHDL.My purpose is constructing a car which can be controlled with the buttons on BASYS3 ( I think I need Bluetooth module for it to RC a car). In addition to that my car should stop when it sees red ( i think I should use a color sensor for it) and should not work until it sees a green. These “red” and “green” can be anything like green cubic toys.This color sensor does not have to be mounted on the car, but it would be better if it is.I have very little information about basys3, vhdl, sensor design, etc. (this is my first course in ee I was learning principle courses like math, phy, cs )I would appreciate any help.Thanks.
What is these component in AVR I/O pin? - Page 1
Forum section: electronics / general

author: Porama6400
author_rank: Regular Contributor
timestamp: March 11, 2019, 01:36:22 pm
content: I'm curious about how AVR I/O pin works internally, however, I found this component that I have no idea what it isAnyone know what it's name?Thanks

author: dgtl
author_rank: Regular Contributor
timestamp: March 11, 2019, 01:53:31 pm
content: Top: transmission gate:https://en.wikipedia.org/wiki/Transmission_gateBottom: multiplexer:https://en.wikipedia.org/wiki/Multiplexer

author: David Hess
author_rank: Super Contributor
timestamp: March 11, 2019, 03:00:05 pm
content: dgtl beat me to it, transmission gate and multiplexer.

author: Porama6400
author_rank: Regular Contributor
timestamp: March 11, 2019, 03:19:30 pm
content: Thank you so so much

author: jackthomson41
author_rank: Regular Contributor
timestamp: March 12, 2019, 06:09:27 pm
content: Quote from: David Hess on March 11, 2019, 03:00:05 pmI think I am too late but transmission gate and multiplexer. Why don't you go withControl SystemorEmbedded system?
STM32: GCC linker script changing from STM32F100 to STM32F103 - Page 1
Forum section: electronics / general

author: rhodges
author_rank: Frequent Contributor
timestamp: March 16, 2019, 08:19:44 pm
content: I am getting into STM32 land nowI have installed my ARM tools and I have built a demo program, looked at the startup and main code, and am looking forward to working with it.The example code is from Dr. Geoffrey Brown and it has a linker script for the STM32F100 (128K Flash, 8K RAM). I have two boards witth STM32F103C8 (64K Flash, 20K RAM).I copied his script and changed the memory section to:Code:MEMORY{RAM (rwx) : ORIGIN = 0x20000000, LENGTH = 20KFLASH (rx) : ORIGIN = 0x08000000, LENGTH = 64K}Is this all I need to change? Thanks!

author: ataradov
author_rank: Super Contributor
timestamp: March 16, 2019, 09:22:10 pm
content: That depends on what else is in the linker script. Attach the complete file.

author: rhodges
author_rank: Frequent Contributor
timestamp: March 16, 2019, 09:43:50 pm
content: Okay, here is the whole thing. (If the attachment doesn't work, I will cut and paste it in.)

author: ataradov
author_rank: Super Contributor
timestamp: March 16, 2019, 09:46:52 pm
content: This is a well written linker script. Those changes should be sufficient.I like the idea with stack size checker. I will borrow that for my scripts.
general SPI troubleshooting - Page 1
Forum section: electronics / general

author: brownt
author_rank: Regular Contributor
timestamp: March 09, 2019, 09:57:46 pm
content: Hi,Using a PIC18F26K40 to run a NRF24L01 over SPI. Works as expected.Trying to use PIC16F18326 to run a NRF24L01 over SPI. Doesn't work.I am using pretty much the same code as the 18F. It is generated by MCC. The main differences are the microcontroller, and the pins that are being mapped via PPS. I have tried various things but I have run out of options to fault find it.I have used a logic analyser on it and it is reading and writing the correct values. It seems that the NRF is not being setup correctly for channel etc. The IRQ line is floating, but tying it high or low makes no difference. However, I can make it work by connecting the IRQ line to the data analyser when it is tied high or tied low. I can then disconnect the analyser and it keeps working correctly. So again it seems the the NRF is not being setup correctly.Any ideas on how I can find out what is wrong?

author: NorthGuy
author_rank: Super Contributor
timestamp: March 10, 2019, 01:09:27 pm
content: If you see 0x0e on the line and PIC reads the same, then there's nothing wrong with the PIC.If you have it working with PIC18, just capture the PIC18 conversations and find the differences.

author: rstofer
author_rank: Super Contributor
timestamp: March 10, 2019, 06:26:10 pm
content: Are you clocking on the wrong edge? If 0x07 turns into 0x0E (three consecutive high bits), I would be looking in that direction.OTOH, I have no idea what your code is doing.