Sorry, but there are no more tags available to filter with.
  • Bootstrap download tool

    Hi all,

    I'm working on a project where we have a custom (and too fancy) GUI bootstrap download tool, without sourcecode. It also expects that you want to flash something and it uses Motorola S-Records.

    Can anyone tell me where I can find a small…

  • Guarantee my code.

    Hello!

    I need some information about CRC.

    I have a new question. I have finished my code. I am working with Keil to program a XC167CI microcontroller, but I have to guarantee the code programmed in memories. So I have to develop cyclic redundace check…

  • C166 preprocessor and paths

    Hi all,

    When I specify include directories like so:
    INCDIR(.\system;.\inc)
    and run the preprocessor (PREPRINTONLY) I get output that contains (for example):

    #line 1 "\PROJECTS\MAIN\FOO\BAR~1\INC\TEST2SUB.H" /0
    The other output correctly…

  • Debugging code in keil

    Dear All,
    I'm using c8051F120 and Keil uVision2 IDE. If I want to debug my code, I should connect to my target from the IDE using JTAG. While doing this, every time the code is downloading to my target. Is it possible to connect and debug my code…

  • A question about the logic analyzer

    Hello all,
    I want to monitor 2 variables:
    'gActiveTask', which has external linkage (meaning: a module uses it by specifying "external"), and another which isn't static (called 'sCounter').
    When I add these 2 to the logic…

  • A simple question about assigning number

    Hello,
    I think I missed something here but I don't get it yet :)

    this code:
    long x ;
    x = 100000 ;

    generated the following assembly:

    00020004 E6F4A086 MOV R4,#0x86A0
    00020008 E015 MOV R5,#0x01

    because 100000 = 0x186A0. fine.

    but…

  • ST10F269 Code Locking, Code Temporary Unlocking and Programming Flash

    I am using ST10F269 in our design

    I am using Keil compiler for development and ST10 Flasher to program.

    I want to incorporate Flash protection, Flash temporary unprotection and Programming of Flash feature into code to be develope.

    If any one having…

  • External Flash Problem

    I am having problems with drivers for AM29F800 flash memory connected to a XC167 using CS0.

    The flash is acting as though there were only one sector, Example: I erase sector 5 then write to sector 5, offset 0 a value of 0xABCD, I read back 0xABCD from…

  • Can a function know whether it executes on interrupt context or not?

    Hello,
    I am busy writing an RTOS with a preemptive scheduler. I have written a mutex which works fine, but, of course, I cannot use that mutex (a one that loops until the lock is released by another task) in interrupt context (doing so locks the interrupt…

  • putchar works, printf not

    Hello,

    I'm programming a OS for C167 and my problem is that the C167 does write with putchar, but when I want to write with printf it only prints the first character of the string.

    For example:

    void initSerial(void) {
        P3  |= 0x0400;
        DP3…

  • AGSI - AgsiSetWatchOnMemory C166

    Can someone confirm that the AGSI function
    AgsiSetWatchOnMemory on C166 (V6.02) is not
    correct working ?!

    On C51 (V7.50) this function works ok.

    What is the datatype and the coding of
    then second parameter AGSICB REASON r ?

    Best regards and a happy…

  • _nop_()

    Hi,

    I have just taken a project already started on the ST10F168. My problem is to understand when I am obliged to use the _nop_() function. Because in my project, it's using in abundance...Is it really necessary ??

    When you set a port or a state…

  • How to configure CAPCOM1

    Hello!

    I have a bit problem. I don't know how I can configure the CC1_CC4 in this mode: Cap/Com p/n Trans.

    Thanks.

  • Problems after update from c166 v5.00 to c166 v5.05 (v6.02)

    Hello all,

    I have just updated from c166 v5.00 to v5.05 but the generated assembler code differs and the program is running errorious. I'm using an XC161CJ.


    the instruction:

    #define CC1_IOC_STAG ((T_Reg16 *) 0xF062)->bit2…

  • Problem with C166 6.02 and void*

    Hello All!

    I have a problem with my existing projects since upgrade from 5.04b to 6.02. With 5.04 all code samples below compile and work fine! The new compiler version is much more agressive with some warnings as stated in the release notes.

    The following…

  • Flash memory Am29F160D

    Hello,

    I'm using a PhyCore167HSE board (from Phytec). There is on this board a C167CSL40M and flash memory Am29F160DT.
    The problem is :
    - how can I write, read and erase in this memory.
    I have ever look on documentation and examples but I don't…

  • Interrupts, flags and functions

    Hello, I need to know the exact moment when an input is set.

    I'm using XC167CI and I have fast interrupts. This way is full, I mean I have used all fast interrupts.

    I don't know how I can know when an input por is set and reset.

    What can I…

  • How to get a pulse waveform

    Hello,

    how can I get a sample code to obtain a 2 seconds pulse waveform?

    Thanks

  • How can I generate a two second pulse signal?

    I would like to generate a two second pulse signal, but I amn't sure how I can do it.

    I'm thinking about using CAPCOM UNIT but I prefer do it in a different way because I'm using all timers from all CAPCOM UNITs.

    Another idea?

  • Serial Interface & Terminal Program

    Hello,
    I'm using a C167 Bord with uVision2. My program sets the configurations for the serial port,sends some data via the port and it works in the Serial Window #1 (I see the data which I had sent).

    In the next step I wanted to display some values…

  • FTP Client

    I'm locking for an FTP client "without IDE" to implement into my application.
    I must use it to acces data in an FTP Server.
    Can you help me?

    Thank
    Paulo

  • RETI doesn't work

    Hello,

    I would like to realise a small OS for a microchip. I already have a running OS for the C167CR-LM and would like to also run it on a XC167CI. But the version for the Target XC167CI has a problem when returgin from a Interuptfunction.

    Here is…

  • Please help: why connecting failed?

    Hello,

    I 'm programming the first time with Keil uv_2 and Phytec SK-167CR. At first I want to simulate something on the Phytecboard. But everytime I got the message: "connecting target failed". This is my simulation program:

    #include …

  • some beginner's problems about uVision3

    Hi,

    I am a newbie for Keil uVision3. Some problems occurred during my first experiment with the hello program.

    1, while opening 'Source Browser', an error comes out: Invalid file *.SBR

    2, I can open 'Watch and Call Stack Window', but watch…

  • Using 74LVC4245's on a data bus

    Im using these to inface a 5V processor with 3.3V memory. Just wondering if anyone has any tips/advice they might have learned from past experience.