Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Recent content by arthur0

  1. arthur0

    Scanset issue in C language

    HI. There are a number of issues at work in your little proggy. But first, a couple of things to know: 1. scanf will not skip leading whitespace when used with scanners; 2. scanf will probably leave the output string unchanged if it fails (failure should be determined from the returned int); 3...
  2. arthur0

    How to interface Ultarsonic sensor to Arduino using TTL to RS485 module ?

    Well, I've never tried this so I can't say for sure if it'll work, but yes, this is how I envisioned it (except maybe for the power and grounding that can be localized sources if the modules are [very] far apart).
  3. arthur0

    How to interface Ultarsonic sensor to Arduino using TTL to RS485 module ?

    Hi Milan. If I understood what you're after, do this: 1. wire DE and /RE together on both RS485 pairs. Let's call this new signal DIR. 2. at the sensor side, connect sensor's Trig to module's RO, then module's DI and DIR *together* to the sensor's Echo. 3. on Arduino you'll need 2 TTL outputs...
  4. arthur0

    how do run int main(int argc,char * argv[]) in the visual C++

    WinMain is the entry point in a Windows application. I thought you said you wanted a console application, but that’s obviously not what you’ve created (you chose the wrong wizard). Anyway, the code you posted can only run as a console, so change the linker’s settings (in the ”Link” tab) to...
  5. arthur0

    size of int in Microcontroller 8051

    Yes, it does...
  6. arthur0

    size of int in Microcontroller 8051

    As horace1 pointed, this is [only] compiler dependent. There's nothing in hardware tying a particular uC to a specific size of int. That being said, all 8-bit uC of any architecture and flavor and on all compilers I have ever used (there are a few of each) have had a 16-bit int (-32768 to...
  7. arthur0

    guidance reqired in Hi-Tech C

    Hmm... I'm not sure I follow you, nor understand your dilemma... In your code A is a function taking a float (parameter B) and returning a float (0.0). I see no other way of interpreting this… If you call A somewhere, like this: float f = A(3.74); you’ll get f = 0.0. In fact, this example is...
  8. arthur0

    guidance reqired in Hi-Tech C

    I bet it returns the float 0.0 (at least it should, as any [good] compiler would).
  9. arthur0

    how do run int main(int argc,char * argv[]) in the visual C++

    As horace1 pointed, I've also been able to compile your code without problems. Are you sure you've given us the complete code? It sounds like you have a comment (i.e. "// some comment") on the last line of your file without a new line at the end... If that's the case, make sure you go to the...
  10. arthur0

    how do run int main(int argc,char * argv[]) in the visual C++

    Hi, Make sure to set your compiler to not use a precompiled header, or if you do, provide one (such as stdafx.h). (If you use VC++6, do Project->Settings->C/C++ tab->select "Precompiled Headers" in the "Category" dropbox and select "Not using precompiled headers" radio button.) Arthur
  11. arthur0

    Sinclair ZX80 1-3k ram pack schematic needed

    Hi. That's a tough one to find nowadays, but I found some info and a picture of it here. Based on that, I couldn't resist drawing a schematic myself, which I hope is correct and useful to you... Arthur
  12. arthur0

    Error of multiple definitions in PIC

    That's not a good solution (even though it works). Please, read the posts above again and notice how I told you to declare and initialize your variables in "interrupt.c", then declare them as extern in "interrupt.h" (and only there!), which you're then free to include it wherever necessary...
  13. arthur0

    Error of multiple definitions in PIC

    This structure looks good to me. Note that you don't need to put the keyword extern before function prototypes (but it's not an error to do it either). Oh, and put your "multiple-inlcusion-prevention-definition" as the very first thing in your header files (even before #include "StdTypes.h")...
  14. arthur0

    Error of multiple definitions in PIC

    ... to sum it all up, put the above snippet of variable declaration in "interrupt.c" and declare them extern to the other modules (gsm and main) by including "interrupt.h" containing the extern declaration.
  15. arthur0

    Error of multiple definitions in PIC

    Hi. A good rule of thumb to stick to is to never write source in a header file that would generate machine code and/or take up storage. You should only put macrodefinitions, type definitions, function prototypes, extern declarations etc. in a header file (none of the above will generate machine...

Part and Inventory Search

Back
Top