hybridfree/eevblog-posts huggingface dataset:
PIC16F1459 and MPLAB X Code Configurator - Page 1
Forum section: electronics / general

author: The Magic Rabbit
author_rank: Regular Contributor
timestamp: September 29, 2015, 11:26:11 am
content: Does anyone know how to get the clock to the claimed 48MHz from the data sheet, and why there are no USB libraries for a chip advertised as targeted towards USB use!?Sent from my XT1039 using Tapatalk

author: Andy Watson
author_rank: Super Contributor
timestamp: September 29, 2015, 11:51:10 am
content: What clock source are you using?As for libraries, the 16F1459 usb port appears to have been borrowed from the PIC18F46Jxx/ 18F25xx family and bolted-on to the mid-range silicon. The libraries for the 18Fxxxxx should work - may be with a bit of fiddling. E.G.http://www.signal11.us/oss/m-stack/

author: The Magic Rabbit
author_rank: Regular Contributor
timestamp: September 29, 2015, 11:53:54 am
content: INTOSC which the datasheet says should get me to 48MHz by using a 16MHz clock and PLL x3Sent from my XT1039 using Tapatalk

author: Andy Watson
author_rank: Super Contributor
timestamp: September 29, 2015, 12:13:56 pm
content: I''ve only used it with an external xtal. This thread might provide some inspiration.https://www.eevblog.com/forum/microcontrollers/pic16f1459-problem/msg732903/#msg732903Also, be sure to check out the errata-datasheets on Microchip's website - not everything on the silicon works as datashheet claims!

author: Maxlor
author_rank: Frequent Contributor
timestamp: September 29, 2015, 12:16:58 pm
content: The clock config module for the 1459 seems to be broken in the code configurator. So... do it the oldfashioned way: OSCCON = 0xFE; Note that the INTOSC is probably not going to be accurate enough for USB by default, you need to tune it.As for USB libs: did you seeMLA?

author: The Magic Rabbit
author_rank: Regular Contributor
timestamp: September 29, 2015, 12:23:17 pm
content: Broken in code... so not just me.Do I manually change the XTALFREQ declaration to 48 from 16 too?What's MLA?Sent from my XT1039 using Tapatalk

author: The Magic Rabbit
author_rank: Regular Contributor
timestamp: September 29, 2015, 12:36:57 pm
content: This is as far as I've got so far... I'm sure I need to get rid of those blue/white crosses. I'm expecting something needs ticking, changing, etc somewhere but can't find the option and there are no clues in the interface.Sent from my XT1039 using Tapatalk

author: The Magic Rabbit
author_rank: Regular Contributor
timestamp: September 30, 2015, 11:04:32 pm
content: Just updating; Found the MLA. Feel a bit of a donut not knowing about it from the start. There's an absolute mountain of stuff in there to learn from. TONS of example applications.Thanks for pointing me to them. I've got lots of reading and learning to do! :-DSent from my XT1039 using Tapatalk
how to remote another computer using tablet with window 7? - Page 1
Forum section: electronics / general

author: NateDuong
author_rank: Contributor
timestamp: September 28, 2015, 02:43:19 pm
content: Dear group,I am trying to send data to another computer (offline, no internet connection...) just communication between 2 computers using putty.exe and pscp.exe (sorry if I say wrong).If you have any ideal, please advise!Thank you,Best regards,Nate Duong.

author: linux-works
author_rank: Super Contributor
timestamp: September 28, 2015, 04:20:11 pm
content: wifi and ssh (scp) or ftp?hell, you could even run a webserver on each box and just POST data to them.

author: Kilrah
author_rank: Unknown
timestamp: September 28, 2015, 04:40:13 pm
content: Ad-hoc WiFi and network shares?

author: The Magic Rabbit
author_rank: Regular Contributor
timestamp: September 29, 2015, 11:29:58 am
content: You can't use software that requires an online network connection if you are not online. You will need a network, even if not connected to the Internet.Just use a USB memory stick like everyone else, or setup a network.Sent from my XT1039 using Tapatalk

author: fubar.gr
author_rank: Unknown
timestamp: September 29, 2015, 12:03:13 pm
content: I believe Teamviewer works via LAN.

author: HighVoltage
author_rank: Super Contributor
timestamp: September 29, 2015, 01:46:58 pm
content: You could go oldschool with an RS232 connection and PCAnywhere (If you have a old copy)Or look at B&B Electronics for some industrial connections.http://www.bb-elec.com/Products.aspx
MSP-EXP430F5529 as ISP - Page 1
Forum section: electronics / general

author: Connoiseur
author_rank: Regular Contributor
timestamp: September 28, 2015, 02:59:42 pm
content: Hello everyone!I sincerely apologise if this is a repost, and would be thankful if someone points me to the thread.Quite a few time back I received an MSP-EXP430F5529 experimenter board as a gift. I am not familiar with MSP430 devices but know about AVR (both in Arduino and embedded c). I was wondering if the experimenter board can be used as an ISP just as Arduino is used for AVR devices. I have seen an Instructable that shows the same for Launchpad.http://www.instructables.com/id/EASY-MSP430-LaunchPad-ISP-with-only-4-wires/I have a few MSP430F249 and MSP430AFE253 lying around and I'm itching to do something with them but not in a hurry to buy the expensive MSPFET programmer.Any relevant information will be highly appreciated. Thanks

author: rsjsouza
author_rank: Super Contributor
timestamp: September 28, 2015, 03:17:14 pm
content: That is perfectly possible, as mentioned in section 4.3 of itsUser's Guide. Check table 1 for SBW and UART pinouts.

author: Connoiseur
author_rank: Regular Contributor
timestamp: September 29, 2015, 07:25:11 am
content: Quote from: rsjsouza on September 28, 2015, 03:17:14 pmThanks for the help. Finally I was able to upload programs to my MSP430 device.
Lattice Diamond under Linux - Page 1
Forum section: electronics / general

author: mastercylinder
author_rank: Newbie
timestamp: September 23, 2015, 01:59:09 pm
content: Hi guys,I am a newb here, so go easy on me. I see there are a couple of other semi-orphan posts about Diamond on this forum, but no real answers. I'm messing around with a MachXO board to try and do a proof of concept system. I was trying to get the system up and running on Linux, but the license fails on my bleeding edge OpenSUSE tumbleweed distro. I can't get support out of them (I am not using a company email), but their license admin says the license is correct. It seems to be quite poorly constructed software under Linux - all the .so files in the bin folder... Does not inspire confidence...Just wondering if anyone has run into a similar issue and solved it?Thanks-Andrew

author: ale500
author_rank: Frequent Contributor
timestamp: September 23, 2015, 06:06:26 pm
content: The license is tied to the MAC of the eth0, maybe the interface is called something else like in fedora ? (It used to work well at least on CentOS...)

author: wd5gnr
author_rank: Regular Contributor
timestamp: September 26, 2015, 12:43:09 pm
content: I've had this problem as well. There are a variety of issues with installing on Linux. The problem is it looks for eth0 and that's it. So you wind up having to make a fake eth0, giving it a mac, and then licensing that fake mac.There are a few ways to do this:http://www.mathworks.com/matlabcentral/answers/73938-activating-on-linux-without-eth0Last time I did it, I did it with tun:tunctl -t eth0ip link set dev eth0 address xx:xx:xx:xx:xx:xxThere are some other hiccups and I solved most of them here:http://hackaday.com/2015/08/27/learning-verilog-for-fpgas-hardware-at-last/TL;DR:Sign up problems, Bad tar file, MAC address issue, and then finally some of the software was RPM so I quit and went to open source tools ;-)
145c atmega328p Pro Mini review - Page 1
Forum section: electronics / general

author: ralphd
author_rank: Frequent Contributor
timestamp: September 25, 2015, 03:02:32 am
content: While a working pro mini for 145c is by no means a bad buy, I think I'll stick with the Baite Pro Minis as my go-to AVR board.http://nerdralph.blogspot.ca/2015/09/145c-atmega328-pro-mini.html
how to install "devcon" into the windows *? - Page 1
Forum section: electronics / general

author: NateDuong
author_rank: Contributor
timestamp: September 23, 2015, 12:18:17 pm
content: Dear Group,I am trying to install devcon into the windows 8,when I follow the instruction, everything looks fine, but when I type devcon on the command window, it shows the message "This app can not run on your PC"I do not know what is going on, and tried to search for more information, people says "devcon" just work for windows 7 not for 8,You know the devcon function will help to enable/disable USB port. So I am still trying.If anyone have any ideal to fix that problem or better ideal to enable and disable USB port, please help.Best regards,Nate Duong.and here is the code for reference:######################@echo offrem disable/enable 5 USB com portsrem devcon disable USB\VID_16C0*rem devcon disable "@USB\VID_05E3&PID_0608\6&6A3BB49&0&4"rem devcon disable "@USB\VID_05E3&PID_0608\5&1DF0FBC&0&3"rem ping -w 1000 -n 2 1.1.1.1 >nulrem devcon enable "@USB\VID_05E3&PID_0608\5&1DF0FBC&0&3"rem devcon enable "@USB\VID_05E3&PID_0608\6&6A3BB49&0&4"rem devcon enable USB\VID_16C0*ping -w 1000 -n 2 1.1.1.1 >nul#############
how to install the serial module into cygwin (terminal) - Page 1
Forum section: electronics / general

author: NateDuong
author_rank: Contributor
timestamp: September 23, 2015, 10:24:01 pm
content: Dear group,I downloaded this software "cygwin," (terminal), and trying to run Python onthis software but i failed on the installing the serial,Could you please give me some ideal?Thank you,Best regards,Nate Duong.$ python Blinking_off.pyTraceback (most recent call last):File "Blinking_off.py", line 2, in <module>import serialImportError: No module named serial

author: ivaylo
author_rank: Frequent Contributor
timestamp: September 24, 2015, 06:29:12 am
content: For Python on Windows I'd usehttps://store.continuum.io/cshop/anaconda/instead.
PIC32MX170F256D(A2), IVref impedance? - Page 1
Forum section: electronics / general

author: Chris C
author_rank: Frequent Contributor
timestamp: September 21, 2015, 05:32:50 am
content: I'm testing the ADC channels on this MCU, and being thorough. Sampling all 16 channels about 50x per second, everything is giving the expected results, except AN14.AN14 is internally connected to IVref, which is an internal 1.2V precision voltage reference. However, with a sample and hold (S/H) time of 250ns, I'm only measuring IVref as 0.687V. Boosting the S/H time to 750ns, I get closer to the expected result.According to the main datasheet, S/H of 200ns is sufficient for a signal impedance of up to 5.0K. I've checked all related datasheets and can't find IVref's impedance listed, nor do I know what might be a typical impedance. But I suspect it must be rather high. And if the ADC's S/H capacitor is capable of momentarily pulling down the IVref voltage,then one should never sample it at all; else it may cause false triggering of other things using it (comparators, CTMU).Does this seem like a valid assessment? Or is there another explanation? Code follows, in case I've made some error.Code:void DAQ_Scan() {UNATIVE i1;AD1CON1 = 0;AD1CON1bits.SSRC = 0b111; // internal counter ends sampling and starts conversion (auto convert)AD1CON1bits.CLRASAM = 1; // stop conversions when interrupt occursAD1CON2 = 0;AD1CON2bits.CSCNA = 1; // scan inputsAD1CON3 = 0;AD1CON3bits.ADCS = 1; // Tad=4*Tpb, pb=48Mhz, Tpb=20.833ns, so Tad=83.333nsAD1CON3bits.SAMC = 3; // S&H=3*Tad, so 250nsAD1CHS = 0;AD1CON1bits.ON = 1; // turn ADC module onAD1CON2bits.SMPI = 15; // interrupt after 16 samplesAD1CSSL = 0xFFFF; // scan 16 channelsIFS0bits.AD1IF = 0; // clear interruptAD1CON1bits.ASAM = 1; // start samplingwhile (!IFS0bits.AD1IF) {}; // wait for sample completeUI32* ptr = (UI32*)&ADC1BUF0;for (i1=0; i1<16; i1++) {AdcResults = *ptr;ptr+=4;};}

author: Moondeck
author_rank: Regular Contributor
timestamp: September 23, 2015, 10:23:58 am
content: yup, it probably has too big impedance. Its pretty bad with documentation on such small things in PICs, i couldnt find the DAC speed the other day, for the PIC16F series
Anyone been through the Device to Phone over bluetooth obstacle course? - Page 1
Forum section: electronics / general

author: jnz
author_rank: Frequent Contributor
timestamp: September 18, 2015, 06:20:26 pm
content: I'm kicking around options to communicate with my ARM device. USB, ZigBee, Bluetooth, Wifi, whatever. The issue is I need simple for the end user and I need data over the internet for updates. So I'm leaning towards Bluetooth using native app on Android and iPhone, and maybe a Windows native app as well.The issues I'm having...I do not have the time to develope my own bluetooth stack, not even sort of. I'll want to buy a pre-made add-on solution and design my PCB for it from day one. I want to keep the costs under $8 at 1k units. I basically just need UART to Bluetooth adapter.Apparently iPhone has this thing called mFi where each Bluetooth device needs to be mFi certified in order to use serial over bluetooth. What the hell apple!? Ok, so does anyone make a mFi certified add-on? Because getting mFi cert is probably 10k+ which I could handle, but is also suited for people making Airplay devices and big mfgs that using a lot more functionality than I amAny good tips for protocols, APIs, areas of difficulty that I should know to avoid? It seems there are work-arounds for Apple using Gamekit, there are all sorts of Android feautes/issues. As far as devices go, I just need to support the last two or three versions of phones and tablets. I'll likely hire this out, so if anyone knows a good consultant group that might want to design the native apps, I'm looking. Or any other random info anyone has on this topic.I have full access to TCP/IP, PPP, Webserver, and all sorts of networking stacks for ARM, so I guess I could handle much more than serial comm over BT, but I'm trying to keep things simple. Not sure if there is a more complex initially, but cheaper long term solution that would utilize networking over BTMuch appreciated!

author: Stonent
author_rank: Super Contributor
timestamp: September 20, 2015, 11:27:49 pm
content: I don't know why Apple does this. Nearly anything that I've found that is bluetooth that is not a keyboard or related to audio, just plain doesn't work with an iphone.I can't use my Bluetooth OBDII device with any apple products because it uses Blueotooth SPP. They make some that do work with apple devices but they work over wifi and you have to make a peer to peer setup with the phone/pad. Bass-ackwards to me...

author: jnz
author_rank: Frequent Contributor
timestamp: September 21, 2015, 04:29:34 am
content: From my research it seems Apple is OK with BTLE but not BT-classic. So, yes, I can use BTLE, but I'm kicking around if the costs be a USB connection are worth it. BT has huge advantages for me but a lot more programming on the native app side.I need someone that's done firmware programming, web programming including SQL and intensive JavaScript, and also native app programming... Seems like that's going to be a hard person to find :/
Arduino M0 - Page 1
Forum section: electronics / general

author: SaabFAN
author_rank: Frequent Contributor
timestamp: September 19, 2015, 09:13:56 am
content: Has anyone seen the Arduino M0 or used it?It basically is the Arduino Zero but without all the extra Chips, just the MCU sitting on the board, directly connected to all pin-headers and the USB.In essence something I'm about to build myself with my MPPT-Project^^The interesting bit: It has Arduino written all over it, even the Logo is on there, but it is not featured on the Arduino-Website. The only place I find information about this board are the various distributors that are selling it for around 24€.

author: andersm
author_rank: Super Contributor
timestamp: September 19, 2015, 09:29:41 am
content: Do you meanthis board? It's an arduino.org/Arduino SRL product, not arduino.cc/Arduino LLC.

author: donotdespisethesnake
author_rank: Super Contributor
timestamp: September 19, 2015, 09:59:30 am
content: There are now two companies both claiming to be "Arduino" :http://arduino.stackexchange.com/questions/11824/difference-between-arduino-cc-and-arduino-orgIt's quite bizarre and a complete mess, but so far the two companies are co-existing without significant trouble for users. I guess that will develop over time as product offerings diverge.Ironically, arduino.org are more committed to Open Source, arduino.cc are not publishing code and design files for Arduino Zero. There's a few small differences between M0/M0 Pro and Zero, I would recommend using the arduino.org IDE.

author: SaabFAN
author_rank: Frequent Contributor
timestamp: September 19, 2015, 10:17:51 am
content: Quote from: andersm on September 19, 2015, 09:29:41 amYes, that's the board.I didn't know that there is another instance of Arduino around. Never looked at the TLD when searching for Arduino-stuff.

author: andersm
author_rank: Super Contributor
timestamp: September 19, 2015, 10:34:04 am
content: Quote from: SaabFAN on September 19, 2015, 10:17:51 amIf you've managed to avoid all thelawsuit nonsensethen congratulations, it's all kind of depressing.
How to transfer code into 8051 chip? - Page 1
Forum section: electronics / general

author: Raman12
author_rank: Newbie
timestamp: September 17, 2015, 01:50:20 pm
content: I am new to microcontrollers, and I am using 8051. I have purchased a 8051 chip (AT89S51) but don't know how to use it. Means I know that Keil IDE is there for coding, but how to transfer the code into the microcontroller? I have searched and found that I should get burner, but I am not getting it, when I searched, all I found is development boards. Should I buy development boards, also I want to know the process after getting the burner.Please help.

author: mikerj
author_rank: Super Contributor
timestamp: September 17, 2015, 01:58:54 pm
content: The process depends on whether the programmer you buy is supported by the Keil IDE. If it is, then you need to configure Keil to use the correct programmer (target options) and then it's as simple as building your code and clicking the "Download" button.If your programmer requires an external application, then you will need to build your code, launch the programmer application, configure the target device, import the hex file produced by the Keil linker and then program your device.

author: wraper
author_rank: Unknown
timestamp: September 17, 2015, 02:13:38 pm
content: AT89S51 can be programmed with atmel ISP programmers or parallel programmer. For example you could DIY STK200 programmer (if computer has physical LPT port) and use this application to program them:http://dybkowski.net/content/en/node/15Although using AT89S51 for new design is very strange decision as it is obsolete a hell. If particularly 8051 architecture is needed, better to go for Silicon Labs ICs which despite having 8051 compatible core are very fast and advanced MCUs.

author: Quarlo Klobrigney
author_rank: Super Contributor
timestamp: September 17, 2015, 02:38:27 pm
content: Look into the MiniPro TL866 Universal Programmer as it is cheap enough to use for many IC's including the 8051. It is a simple matter to use the resulting .bin or .hex file after compiling in the Keil IDE and program the chip. Also as far as development boards, you can make your own setup using a breadboard and jumpers to any peripheral you wish and save the money from the dev board purchase and use it towards a programmer.Quote from: Raman12 on September 17, 2015, 01:50:20 pm

author: Mrinal4
author_rank: Newbie
timestamp: September 18, 2015, 04:59:34 pm
content: AT89S51 can be burn using ISP programmer, there are lot of inexpensive burners are available, take a look herehttp://www.ebay.in/sch/i.html?_sacat=0&_nkw=8051+programmerDon't buy dev boards if you want to learn basics. Use some flash burning software like Progisp to burn the .hex file into micro controller.Searching "getting started with 8051" gives many links I found this very practical and easy to understand:http://circuitdigest.com/microcontroller-projects/getting-started-with-8051Give it a look
Prog Info on "E5" SoC [Triscend TE512S32-40LC] - Page 1
Forum section: electronics / general

author: jopki
author_rank: Newbie
timestamp: September 14, 2015, 06:38:52 pm
content: Has anybody ever dabbled with Triscend "E5" SoC TE512S32-40LC ? I am trying to see if I can re-program this chip and there seems to be very limited information around. Triscend was apparently acquired by Xilinx but Xilinx does not support it nor do they have BSDL file...Any pointers you may have will be appreciated.Thanks, JE.

author: helius
author_rank: Super Contributor
timestamp: September 14, 2015, 11:08:42 pm
content: Chips with 8051 hardcore and configurable logic blocks were in fashion for a little while.The uPSD from WSI/ST was another one, now also discontinued.
FPGA pmod DAC - Page 1
Forum section: electronics / general

author: Bogdan
author_rank: Newbie
timestamp: September 12, 2015, 07:52:10 pm
content: Hello everyone,So here is my problem..I made this VGA interface from my FPGA to my monitor .It worked great, but i was not quite satisfied with the 8-bit color (256 colors) i was limited to.So a wild idea came to my mind, why don't i use the pmod (i/o general purpose pins) on my Digilent Nexys 3 FPGA as output pins, and make a little DAC on a breadboard an have like 12-bit colors or more.I must admit i'm no expert in electronics(this is my first circuit actually), but this idea got me excited and i bought a multimeter, a lot of resistors, wires and a breadboard to make a resistor ladder to divide my voltage.Everything was fine until i realised that the IO pins(which i can set to '0' or '1' 0v or 3.3v) have a dark secret .An IO pin set to '1' is not the same as the VCC pin (see image bellow).They both should be 3.3v and they are if i measure them separetly with my multimeter, but when in the ladder the VCC pins work great, while the IO pins set to logic '1' (3.3v) go down to 2.9, 3.1 or other values.I suspect that they somewhat interract with eachother and the ladder makes them go that way...But i'm kind of lost and i really need your help !I will attach a picture of the ladder schematic bellow.Thank you !

author: ale500
author_rank: Frequent Contributor
timestamp: September 12, 2015, 07:58:18 pm
content: The amplitude on the Analog R, G & B pins should swing between 0 and ~750 mV per the spec, ~3 V is way out of spec. On the monitor side the signals have a 75 ohm resistor to ground...

author: Bogdan
author_rank: Newbie
timestamp: September 12, 2015, 08:14:54 pm
content: thats a valid point, but is not quite the answer to my questionwhy are my IO pins not fixed to 3.3 volts ? and go down to 2.9, 3.1 where they are connected to the ladder ?

author: lincoln
author_rank: Regular Contributor
timestamp: September 12, 2015, 09:29:57 pm
content: well the nexus 2 has 75 ohm series resistor as well as the series resistant of the out put driver. The FPGA can also be configure as to how hard to drive the signals. If you are connecting to an R2R ladder with out a buffer you will never see a solid 3.3v at the output because the series Rs and the load Rs are forming a voltage divider.To solve this you can use a CMOS buffer/invert er to buffer the IO pin form the load. something like 74ahc04.

author: ale500
author_rank: Frequent Contributor
timestamp: September 13, 2015, 06:49:45 am
content: There are curves showing how the VOH drops with the sinked current, look for instance here:https://www.fairchildsemi.com/application-notes/AN/AN-77.pdfPage 2, Figure 2.That may answer the why.
STM32F3 UART1 communication - nothing on TX - Page 1
Forum section: electronics / general

author: fsky
author_rank: Contributor
timestamp: September 11, 2015, 09:11:25 pm
content: Hello, I was trying to configure UART1 on STM32F303VC, using discovery board.I use CoIDE and Standard Peripheral Library. Till now I menaged to set up clocks, blink some diodes, and use SysTick with interrupts.No success with UART however... Tried some examples, but that code, which uses some "_eval.h" library is not written clearly for me (they have hidden almost everything in functions full of defines). Here is my code for UART init:Code:USART_InitTypeDef USART_InitStructure;// TXRCC_AHBPeriphClockCmd(RCC_AHBPeriph_GPIOB, ENABLE);GPIO_StructInit(&GPIO_InitStructure);GPIO_PinAFConfig(GPIOB, GPIO_Pin_6, GPIO_AF_7);GPIO_InitStructure.GPIO_Pin = GPIO_Pin_6;GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;GPIO_InitStructure.GPIO_Speed = GPIO_Speed_Level_3;GPIO_Init(GPIOB, &GPIO_InitStructure);// RXGPIO_StructInit(&GPIO_InitStructure);GPIO_PinAFConfig(GPIOB, GPIO_Pin_7, GPIO_AF_7);GPIO_InitStructure.GPIO_Pin = GPIO_Pin_7;GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AF;GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_UP;GPIO_InitStructure.GPIO_Speed = GPIO_Speed_Level_3;GPIO_Init(GPIOB, &GPIO_InitStructure);RCC_APB2PeriphClockCmd(RCC_APB2Periph_USART1, ENABLE);USART_InitStructure.USART_BaudRate = 9600;USART_InitStructure.USART_WordLength = USART_WordLength_8b;USART_InitStructure.USART_StopBits = USART_StopBits_1;USART_InitStructure.USART_Parity = USART_Parity_No;USART_InitStructure.USART_Mode = USART_Mode_Rx | USART_Mode_Tx;USART_InitStructure.USART_HardwareFlowControl = USART_HardwareFlowControl_None;USART_Init(USART1, &USART_InitStructure);USART_Cmd(USART1, ENABLE);To send something for debugging purposes I just do:Code:USART_SendData(USART1, 0x1111);every second in the main loop. I have tried also:Code:USART1->TDR = 0x0000;without any effect.I got high state on output all the time.Did I forget about something important?I know that correct implementation of UART involves either DMA or interrupts. However it should transmit ANYTHING as it is now, right?My clock configuration is 8MHz HSE multiplied by 9 on PLL, so cpu and APB2 is at 72MHz, APB1 is at 36MHz.If I slow down all the clocks, no changes are visible (except of slower diode-blinking frequency of course)I will be thankfull for someone's skilled eyes to look at my code. Thanks

author: free_electron
author_rank: Super Contributor
timestamp: September 11, 2015, 09:42:58 pm
content: have you set the pin function to uart ?

author: Yansi
author_rank: Super Contributor
timestamp: September 11, 2015, 09:47:38 pm
content: In the PinAFConfig function, you SHOULD have GPIO_PinSource_X constant, instead of what you have there.

author: fsky
author_rank: Contributor
timestamp: September 11, 2015, 09:59:14 pm
content: Quote from: Yansi on September 11, 2015, 09:47:38 pmIT'S WORKING!Thank you very much
STM32 USB 3.0 Type-C? - Page 1
Forum section: electronics / general

author: Pack34
author_rank: Frequent Contributor
timestamp: September 10, 2015, 03:05:09 pm
content: I recently received some product information from Microchip about their UTC2000 and thought it was interesting.http://www.microchip.com/pagehandler/en-us/press-release/microchip-boosts-usb-c-connect.htmlThis got me thinking about how to really implement a USB 3.0 system using an STM32. It's something that I'm familiar with and thought it would be a fun project to get it to work.As per thedatasheet for the UTC2000it more or less manages the connector and power and does not act as a USB 3.0 controller. So far, just the TI TUSB1310 seems to pop up but it's a 175 pin BGA behemoth. Is this the only option?I'm seeing thatCypress has some USB3 controllerswith an ARM core built in. But I was hoping to stick with ST. Am I out of luck?

author: Scrts
author_rank: Frequent Contributor
timestamp: September 10, 2015, 03:07:46 pm
content: What do you need exactly? Speed, power or connector reverse capability? You could go for FX3+STM32.

author: Brutte
author_rank: Frequent Contributor
timestamp: September 10, 2015, 03:34:44 pm
content: How can you imagine a ~200MHz uCs to process Super-Speed data quantities? Some STM32 embed Hi-Speed USB and that allows throughputs in the order of 40MB/s which gives 5 ticks per byte (if the uC does only USB data processing and no other tasks).

author: Pack34
author_rank: Frequent Contributor
timestamp: September 10, 2015, 03:35:59 pm
content: I was looking at both speed and power. I think that the Type-C connector and Microchip controller would take care of that for me.For speed, I was wondering if there was an alternative to using the FX3. The FX3 has an ARM chip built in so the STM32 would most likely be redundant. Unless there would be some memory space issues.Mainly, I'm looking at if USB3 -> Phy -> STM32 could be done without having to program another MCU in the middle.

author: marshallh
author_rank: Unknown
timestamp: September 10, 2015, 05:33:52 pm
content: TUSB1310 is just a PHY. It is a serializer/deserializer, which is useless unless you plug it into something that actually handles the meat of USB3 spec (You're looking at several thousand lines of verilog here)FX3 is a PHY + ASIC + ARM that has programmable interface io so you could hook it up to just about anything, including a CPU. It also costs an arm and a leg.FT601Q is a forthcoming FTDI product that breaks out USB3 into a read/write fifo for use with FPGA/asics and is less than 1/3 the cost of the FX3.Also Type-C is a connector. You can run USB 2.0 devices through the connector just fine. There is no way to run USB3 from one of these above devices through Type-C since it requires the ability to swap tx/rx pins automagically.This chip just cares of the hotplug/powering garbage that is required since there are no concept of host/slave ports anymore.USB3 is going to overwhelm the bandwidth capabilities of most MCUs out there, so in most applications you will be pairing it with an FPGA.
NEC uPD78P324GJ(A) alternative - Page 1
Forum section: electronics / general

author: andyred
author_rank: Contributor
timestamp: September 08, 2015, 07:36:50 am
content: Hello All,I would need your help in finding an alternative (replace the failed chip) for a NEC uPD78P324GJ(A) 16-/8-Bit Single-Chip Microcomputers 74 pin.I'm struggling for some time now to find it, I'm from Europe and haven't find the above anywhere available for order so I'm looking for an alternative easier to findThanks in advance

author: pelule
author_rank: Frequent Contributor
timestamp: September 08, 2015, 06:14:22 pm
content: NEC was merged with Renesas some time ago."Let me google it for you". For "78P324" you will find many info.Data at "http://www.alldatasheet.com/view.jsp?Searchword=78P324"This quite old chip is EOL as expected. It is a 78K3 series single-chip 16-Bit CPU.UPD78P324GJ(A)-5BJ: 74-pin plastic QFP(20 x 20 mm) package, up to 16 MHz clock, 32kbyte OTP = One Time Programmable EPROM, with µPD27C1001A compatible programming and it is automotive qualified (A).

author: andyred
author_rank: Contributor
timestamp: September 08, 2015, 06:30:43 pm
content: I'm aware of the datasheet for UPD78P324GJ(A)-5BJUnfortunately UPD78P324GJ(A)-5BJ is not available in europe, same issue as the original one.Perhaps I missed something, have you had any luck finding it at any supplier in Europe?

author: ale500
author_rank: Frequent Contributor
timestamp: September 08, 2015, 07:33:50 pm
content: You could try this, no idea of its reliabilityhttp://www.guideic.com/Chips/UPD78P324.html

author: pelule
author_rank: Frequent Contributor
timestamp: September 08, 2015, 07:55:52 pm
content: This product is End Of Life for several years now, so only chance to get it is NOS parts.Be careful for the source, as you are not able to check, if the device you buy is really empty or programmed already.There may a chance at the RENESAS distributors, but quite low. There is also a litte chance as the RENESAS technical product support.But even, if you get one "new" device, do you have the program code to program it?Or is it still possible to read out the PROM content of the old device?At ebay there is a actual offer for a quite close product with a UPD78P352 in KK-package (eeprom version, used with a special yamaichi socket for real-device tests)But price is quite high.http://www.ebay.com/itm/2PC-NEW-UPD78P352KK-20-NEC-78K-III-SERIES-16-8BIT-MICROCONTROLLER-/131135068580?hash=item1e884259a4It may a possible solution.

author: andyred
author_rank: Contributor
timestamp: September 08, 2015, 08:48:53 pm
content: The one you suggested is 64pin ceramic and the one I have is 74pin plasticI can get the code from the old one
Arduino compatible board from SmartTAG - Page 1
Forum section: electronics / general

author: roman112233
author_rank: Newbie
timestamp: September 08, 2015, 02:07:09 pm
content: Hi all,I want to introduce you a simple board from SmartTAG project that is fully software and hardware compatible with Arduino.You can check it onhttp://www.deep.skor support it onhttps://www.indiegogo.com/projects/smarttag-bluetooth-led-display/x/11548795#/story.All documents about this project are downlodable for FREE !!!If you like it share it :-)Roman.
Register: Unable to resolve identifier   - Page 1
Forum section: electronics / general

author: Nihi
author_rank: Newbie
timestamp: September 08, 2015, 11:30:08 am
content: Hello Forum,I am using a PIC32MZ2048EFH144 and I am trying to set the register ADCFSTAT = 0 but the compilermarks it as "Unable to resolve identifier" error.I checked the PIC32MZ2048EFH144.h and I cannot find this register.I have no problem setting all the other ADC registers.Is there any reason why it is not implemented or am I missing something?Can anyone of you give me some direction?Thank you.Current setupMPLABIDE v3.10XC32 v1.40Harmony 1.06
Programming / Debugging a TM4C123GH6PM - Page 1
Forum section: electronics / general

author: ManicMarkian
author_rank: Newbie
timestamp: September 07, 2015, 03:48:13 pm
content: Hi,Im a bit of a newbie, so sorry if discussed before or just a stupid question and its a bit of a long shot, but i was wondering if its still possible to program / compile / debug a Tiva C Launchpad FROM a G5 Power pc based apple mac over usb or from a Raspberry PI / Beaglebone Black? .. Searching around the internet doesn't reveal much hope, i've already tried Energia for the G5, and whilst the IDE works perfectly as soon as you try to compile the gcc backend fails probably due to running on the wrong architecture.ThanksMark

author: ale500
author_rank: Frequent Contributor
timestamp: September 07, 2015, 03:56:42 pm
content: Which error do you get from gcc ? You can re-compile gcc without much problem, the target processor is an ARM Cortex M4F anyways, nothing obscure. There are several "sources" (for arm gcc) so-to-say. You may start with something like CodeSourcery. Programming debugging from Mac OSX may prove a bit more challenging, though.

author: ManicMarkian
author_rank: Newbie
timestamp: September 07, 2015, 04:03:05 pm
content: Output from Energia whilst compiling is: /Applications/Energia.app/Contents/Resources/Java/hardware/tools/lm4f/bin/arm-none-eabi-g++ returned 255 .. i get the feeling its to do with Java being heavily outdated, and ive just noticed its not gcc. lol its g++. Ill look into CodeSourcery now, thanks for the reply. Any idea how it can be done FROM a raspberry pi too ?

author: andersm
author_rank: Super Contributor
timestamp: September 07, 2015, 04:32:15 pm
content: Quote from: ManicMarkian on September 07, 2015, 04:03:05 pmI will bet you anything that that GCC binary does not run on PowerPC.You can run OpenOCD on the BeagleBone or RPi. You can even compile code for the Tiva on them if you want, but you will need a bare-metal compiler toolchain even though they're all ARM. Getting modern open-source tools working on a G5 will not be easy. If you had a more modern, Intel Mac you could just grab a compiler fromlaunchpadand OpenOCD fromMacPortsorHomebrew.
fatal error: MCP4725.h: No such file or directory compilation terminated. - Page 1
Forum section: electronics / general

author: NateDuong
author_rank: Contributor
timestamp: September 07, 2015, 01:17:31 pm
content: Dear all,I am working on Arduino and try to upload to Teensy, but when I uploaded, I had a problem with this message,"Interface22.ino:32:21: fatal error: MCP4725.h: No such file or directorycompilation terminated.Error compiling"Could you please help for the reason and how to solve this problem?Thank you very much,Best regards,Nate Duong.

author: senso
author_rank: Frequent Contributor
timestamp: September 07, 2015, 02:24:10 pm
content: You forgot to copy half the library.

author: NateDuong
author_rank: Contributor
timestamp: September 07, 2015, 03:45:13 pm
content: thank you so much senso...
stm32's wachdogs - Page 1
Forum section: electronics / general

author: dizgah
author_rank: Regular Contributor
timestamp: September 07, 2015, 05:44:14 am
content: I'm trying to initial stm32f103rbt6's window watchdog with keil cmsis examples, every thing is OK but in reverse direction,i mean it seems external interrupt & wwdg interrupt handlers are act instead of each others. based on keil read me descriptions periodically it must update wwdg counter & blink leds except when i pulled down portb.9(then wwdg must reset mcu) but know exti interrupt handler act normally & when i pulled down exti then wwdg handler act.funny part of problem is i have a same problem in IWDG too(its interrupt handlers act instead of each others too )i attached projects & hope to any help.tnxIWDG:https://drive.google.com/open?id=0B1mD1Ooy3KuWY3h6R0cwNHpSY0kWWDG:https://drive.google.com/open?id=0B1mD1Ooy3KuWU04zVnptbEYtVlk
Hi-test servo data converter - Page 1
Forum section: electronics / general

author: kayoteq
author_rank: Newbie
timestamp: September 08, 2015, 02:23:40 pm
content: Greetings, thought I'd start out with something exotic..This is the heart of a homespun (but commercial grade) servo control system formerly used to aim signals for news helicopters. Never mind how or what they cost new, what it comes down to is technology gets smaller and lighter and these are aircraft, so when they come up with 2.0 that's 10 lbs lighter,a nice functional chunk of tech like this is just discarded as everything going in has to be bagged and tagged for flight; Even down to the screws that go in the fuselage. Not certified, not going back in flight. Paperwork. FAA.Anyway, that kind of indicates that these things (about 3 'intact') are 90% possible workable, if not their original use..The S/D converter (http://www.computerconversions.com/sdc-st_xt.html) is designed to be an independent process, with voltage circuit isolated,etc. They're feeding hex inverters and bits all over the place, all to aim a antenna while in-flight to their beacon, possibly 20 mi away.So I think it might be a bit precise. Past my pay grade, but that's not stopped me before.This little number takes +5, 15, -15v and tolerant up to 500v. the case is littered with 10w resistors heatsinked to heck.I want to make it work. Not what it was doing, as that requires flying things.Nah, a homemade CNC or a robot will do.*sorry, first post so the images might not be on here. I am not a certified anything but they hire me anyway.

author: kayoteq
author_rank: Newbie
timestamp: September 08, 2015, 02:30:24 pm
content: The spare, unsocketed chips, and not a bend in them
How to copy NAND flash contents ? - Page 1
Forum section: electronics / general

author: domu
author_rank: Newbie
timestamp: September 06, 2015, 03:45:44 am
content: I need to preserve the content of NAND flash memory fromthe sat box. The chip is Samsung K9K8G08U0D.Is it possible to copy/read/dump content of flash memory ?What hardware/software tools do I need ?Any helpful answers will be appreciated.

author: domu
author_rank: Newbie
timestamp: September 06, 2015, 12:37:12 pm
content: Sounds reassuring.Would you care to provide some pointers how to go abouthooking up this chip to MCU ? I have some Arduinos here,but no any previous experience with a task of that kind.

author: amyk
author_rank: Super Contributor
timestamp: September 07, 2015, 01:24:01 am
content: Mind doing some searching on your own first...?Arduino, sure:http://hackaday.com/2012/01/05/reading-nand-flash-with-an-arduino/
TI MSP430 back-to-school sale! 26th Aug for 2 weeks or while stocks last.  - Page 1
Forum section: electronics / general

author: wilfred
author_rank: Super Contributor
timestamp: September 01, 2015, 08:52:50 am
content: /.

author: neslekkim
author_rank: Super Contributor
timestamp: September 01, 2015, 09:44:15 am
content: But you can use only one coupon pr purchase right?so if one wants the debugger, and an msp board (why isn't the msp432 on the list), the the shippingcost will kill it..
PIC32 Microstick II Basic Question - Backward current - Page 1
Forum section: electronics / general

author: ez24
author_rank: Super Contributor
timestamp: August 31, 2015, 07:30:09 pm
content: HiI want to plug in my Microstick II but :Quotes from this site:http://wiki69.pst69.homeip.net/index.php/PIC32_TutorialQuoteHow can backward current occur? Other than something stupid like adding 5 volts to the PIC ? I do not understand this paragraph?thanks

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: August 31, 2015, 09:19:43 pm
content: Backward current can occur if the regulator's output voltage is higher than its input voltage. This situation exists when the regulator is not powered through USB and you supply an external voltage to the PIC.However this is only a problem if something draws high current from the regulator's input to ground. The Microstick II has a diode which protects the regulator from shorts or reverse polarity on the USB connector. The only other components on the input are a 200k resistor and 4.7uF capacitor. If you apply external power then a short surge of reverse current will pass through the regulator as the capacitor charges, but this probably won't hurt it.
mc68008 ISA board, what is this ? - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: August 28, 2015, 12:41:50 am
content: got this board on ebay, I do not know what it is, it has a 68008 CPU on it, anyone has an idea ?I can't find good documentation around, anyone has already hacked it ?

author: westfw
author_rank: Super Contributor
timestamp: August 28, 2015, 12:58:56 am
content: Based on the Zilog communications controllers, I'd guess some kind of serial networking card. (interesting that there are TWO SCCs...)(Apparently EICON was/is a long-time supplier of intelligent (X.25) serial interface cards.https://en.wikipedia.org/wiki/Eicon)

author: nctnico
author_rank: Super Contributor
timestamp: August 28, 2015, 01:07:13 am
content: The lack of a ROM suggests the firmware for the 68008 is loaded by the PC driver. The routing is also quite dense. Someone obviously worked very hard on this layout!

author: markg735
author_rank: Newbie
timestamp: August 28, 2015, 04:17:06 am
content: It's been a while but I believe that's either an RS-232 multiplexer card or an X.25 interface. I want to say the latter based upon the layout.I remember seeing them when I was working on the voice side of a high-end PBX.

author: coppice
author_rank: Super Contributor
timestamp: August 28, 2015, 05:17:46 am
content: It says Eiconcard on the edge of the board. I think all the cards sold under that name were X25 ones.

author: legacy
author_rank: Super Contributor
timestamp: August 28, 2015, 12:02:44 pm
content: Quote from: nctnico on August 28, 2015, 01:07:13 amI guess, I hope, soI canI might upload something coolbut first, I have to understand if I can have a console somewhere

author: legacy
author_rank: Super Contributor
timestamp: August 28, 2015, 12:03:29 pm
content: thanks guys, so I will look for X25-something.
Matlab Compiling Running (MCR) - Page 1
Forum section: electronics / general

author: NateDuong
author_rank: Contributor
timestamp: September 11, 2015, 02:30:17 pm
content: Dear Group,I am trying to run Matlab Compiling Running (MCR) using Python, DOS, Putty ...like matlab.exeAnyone who worked with it before, please give me some recommendation,Thank you very much Group.Best regards,Nate Duong.
I2C Communication Problems - LM75 Temperature sensor - Programmers trap - Page 1
Forum section: electronics / general

author: TJ232
author_rank: Frequent Contributor
timestamp: August 28, 2015, 10:48:32 am
content: As David Jones likes to say, "A trap for young players"And not only for them. Falling once usually is not enought to learn the lesson !For reference:I2C Communication Problems - LM75 Temperature sensor.Youtube related video:
Applied Microsystems CodeICE 020 - Page 1
Forum section: electronics / general

author: legacy
author_rank: Super Contributor
timestamp: August 25, 2015, 09:12:54 pm
content: hiit's an hw debugger for MC68020, I got a special offer (200USD shipped) but just for the hw, I do not know anything about the software it requires to work, I know this equipment has an AUI/LAN port and a serial, so the protocol goes through the lan, which is good and HOST independent!Is there anyone experienced with these debuggers ?

author: legacy
author_rank: Super Contributor
timestamp: August 25, 2015, 10:03:00 pm
content: reading an other paper I have foundQuote

author: legacy
author_rank: Super Contributor
timestamp: August 26, 2015, 03:20:00 pm
content: Quotedoes "GNU" mean GDB compatible ?
Pic24 Comparator (and interupt and timer) MikroC - Page 1
Forum section: electronics / general

author: meerweten
author_rank: Contributor
timestamp: August 24, 2015, 07:06:37 pm
content: Hi all,i'm working on a smaal DIY meter but needed a more powerfull micro as i'm still adding things to it.when i try to use the Comparator of the PIC24FJ256GB106 it seems the COUT1 (output of the comparator) stay's @ 0here is my testcode:http://pastebin.com/embed_js.php?i=0FExEvTJAlso i'm not able to use following : CM1CON.CEN = 1;extra information:Chip: PIC24FJ256GB106Editor/compiler: MikroC DSPic

author: Bruce Abbott
author_rank: Frequent Contributor
timestamp: August 24, 2015, 10:56:55 pm
content: The CEN bit is called CMxCON.CON. I suspect it was changed to avoid a conflict in the bitfield structure.In Mikro C there are two different ways to access file register bits - as individual bits, or through bitfield structures. You have used bitfield names which are in the structure CM1CONBITS, so your code should look like this:-CM1CONBITS.CEN = 1;...CM1CONBITS.EVPOL = 0b10;...CM1CONBITS.CCH0 = 0b00;Or you could set and clear individual bits like this:-CM1CON.CON = 1;...CM1CON.EVPOL1 =1;CM1CON.EVPOL0 = 0;...CM1CON.CCH1 = 0;CM1CON.CCH0 = 0;This may be more efficient (smaller/faster code) for small bitfields.Also in your interrupt routine CMIF and IFS1.CMIF_bit should be IFS1BITS.CMIF or CMIF_bit.

author: meerweten
author_rank: Contributor
timestamp: August 25, 2015, 07:55:17 pm
content: Thanks now atleast i can use the Comparatorbut it seems my interupt isn't working properlyhere's my updated code:http://pastebin.com/fpT2swGL

author: Chris C
author_rank: Frequent Contributor
timestamp: August 26, 2015, 04:43:59 pm
content: CM1CONBITS.CEVT is getting cleared partway through the comparator setup, then never cleared again. Once set by a comparator event, no further events/interrupts will be generated until you clear it. I would recommend clearing it in two places:1) After the comparator is fully set up, rather than partway through the process. After "IEC1BITS.CMIE = 1" in Init() would be a good spot.2) After "IFS1BITS.CMIF = 0;" in ComparorInterrupt().If it still doesn't work, put a check in the main loop to see if either CM1CONBITS.CEVT or IFS1BITS.CMIF goes high. If both do, then the interrupt is being generated, and your ISR not receiving it. If neither do, there may be an issue with the comparator setup.

author: meerweten
author_rank: Contributor
timestamp: August 26, 2015, 05:09:11 pm
content: Nice that fixed the jobhope i get it going now

author: Chris C
author_rank: Frequent Contributor
timestamp: August 26, 2015, 05:14:47 pm
content: Awesome! Glad we could help.