Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - OmarZ

Pages: [1] 2
1
Ethernet Boards (8-bit) / SBC boards on internet
« on: August 16, 2007, 11:54:58 AM »
Can somebody explain me in detail what i need and how i can put SBC board available on internet?

2
Programming / Programming Ladder (PLC like programming)
« on: May 09, 2007, 03:49:16 AM »
This is a very nice free program to build your logics in Ladder.
Program can build compiled code for PIC and AVR and interesting thing to C. So it's very easy to include in your custom project or modtronix software.
I developed a small application that from C code generated, it builds ladder.h and global_vars.h to quick link the generated code.
Maybe one day Modtronix team will develop a similar application, with online feature!  :wink:

http://cq.cx/ladder.pl

3
Projects / I2C Real Time Clock - DS1307
« on: May 08, 2007, 02:38:27 PM »
I2C Real Time Clock DS1307.
The DS1307 serial real-time clock (RTC) is a low-power, full binary-coded decimal (BCD) clock/calendar plus 56 bytes of NV SRAM. Address and data are transferred serially through an I2C, bidirectional bus. The clock/calendar provides seconds, minutes, hours, day, date, month, and year information. The end of the month date is automatically adjusted for months with fewer than 31 days, including corrections for leap year. The clock operates in either the 24-hour or 12-hour format with AM/PM indicator. The DS1307 has a built-in power-sense circuit that detects power failures and automatically switches to the backup supply. Timekeeping operation continues while the part operates from the backup supply.

Key Features
- Real-Time Clock (RTC) Counts Seconds, Minutes, Hours, Date of the Month, Month, Day of the week, and Year with Leap-Year Compensation Valid Up to 2100
- 56-Byte, Battery-Backed, Nonvolatile (NV) RAM for Data Storage
- I2C Serial Interface
- Programmable Square-Wave Output Signal
- Automatic Power-Fail Detect and Switch Circuitry
- Consumes Less than 500nA in Battery-Backup Mode with Oscillator Running

Full data sheet at http://datasheets.maxim-ic.com/en/ds/DS1307.pdf

_________________________________________________________________________________________________________

Schematic, Board and code.

define somewhere global structure
Code: [Select]
            struct
              {
                BYTE_VAL Flags_1;
                BYTE_VAL Flags_2;
               struct
                {
                 BYTE ss;
                 BYTE mm;
                 BYTE hh;
                } Time;
               struct
                {
                 BYTE wd;
                 BYTE dd;
                 BYTE mm;
                 BYTE yy;
                } Date;
               BYTE Alive;
              } DB_SystemClock;


4
Serial LCD Displays / LCD Display enclosures
« on: April 21, 2007, 06:19:36 AM »
Hi.
Is there available also an enclosure for new LCD i2c boards?

6
Projects / SBC65EC and Nokia 3310 SPI LCD display
« on: July 24, 2006, 02:06:15 PM »
Hi.
I will start new project and i will add to my SBC65EC with PIC18F6627 a Nokia 3310 LCD display.This display has got an internal driver and interface is SPI.
I have already some detail documentation and also sample code, but maybe i will need some help, if somebody can be interested....

Regards

7
Programming / Microchip MC18 Compiler 3.03
« on: June 24, 2006, 12:56:09 AM »
There is new upgrade available for Microchip MC18 compiler.
Did anyone test it? There are some changes to implement?

Regards

8
Projects / Project status...
« on: June 03, 2006, 08:00:11 AM »
Hi.
Actually i've successfully tested:
 - TCP based messages communication (Delphi application)
 - i2c IO Expander MicroChip 23008 and 23017
 - i2c DS1307 RTC date and time
 - DS1803 10kOhm 256 bit 2 channels digital potentiometer
 - LM 35 temperature reading on AI1
 - PhotoVoltaic Panel on A2
 - EEprom file data log system

Anyway here a lot of people say that they are using RTC but no one gives a row of code.....

9
Ethernet Boards (8-bit) / Software RTC
« on: April 24, 2006, 05:24:42 PM »
Hi.
In Timer0 interrupt routine i add
Code: [Select]
    //TMR0 is used for the ticks
    if (INTCON_TMR0IF)
    {
        TickUpdate();

        FC_SystemClock(1); //o.z.

        #if defined(STACK_USE_SLIP)
        MACISR();
        #endif

        INTCON_TMR0IF = 0;
    }
And inside FC_SystemClock I add some code to manage SystemClockTime.
I add also a sync. with PC time and it works.
After 1 day the system accumulate 5 minutes of delay!!! In my opinion this 10ms task is not so exact...
How is it possible to use a second Timer at 0.1 ms ?
Regards

10
Ethernet Boards (8-bit) / Modtronix Network Bootloader improves...
« on: March 19, 2006, 02:40:39 AM »
Hi.
In my opinion it will be very useful to add Reset Board Command in Modtronix Network Bootloader program.
Reset Button -> Request User and Password -> Sends to SBC Board HTTP message like implementation on WebPages.

Actually I add in my interface TCP protocol program a reset command but it will be better an implementation on Modtronix Network Bootloader.

Is there anyone that agree with me?

Ciao

11
Hi,
I have some troubles using Analog Inputs at 10bit resolution.

I changed in <projdefs.h>...

/*******************************************************
----------------- Appcfg Configuration -----------------
********************************************************/
//Define if this application has an 8 bit ADC converter, 10 bit ADC converter or none at all.
//#define APP_USE_ADC8
#define APP_USE_ADC10

And in my program...

              #if defined(APP_USE_ADC8)
               IntValue.bytes.MSB = 0x00;
               IntValue.bytes.LSB = AdcValues[ChSel];
              #elif defined(APP_USE_ADC10)
               IntValue.Val = AdcValues[ChSel];
              #endif
              TCPPut(TCPuSocket, 'A');
              TCPPut(TCPuSocket, 'I');
              #if defined(APP_USE_ADC8)
               TCPPut(TCPuSocket, 'B');
              #elif defined(APP_USE_ADC10)
               TCPPut(TCPuSocket, 'W');
              #endif
              TCPPut(TCPuSocket, (BYTE)(((BYTE)(ChSel+1)/10)+48));
              TCPPut(TCPuSocket, (BYTE)(((BYTE)(ChSel+1)%10)+48));
              TCPPut(TCPuSocket, '=');
              TCPPut(TCPuSocket, IntValue.bytes.LSB );
              TCPPut(TCPuSocket, IntValue.bytes.MSB );
              TCPFlush(TCPuSocket);

I receive AIW01=0 ALWAYS value 0! I change Analog Input configurations, speed of convertion settings but still do not work.
And with same settings but using 8 bits it works perfectly and i receive correctly AIB01=30  (for example)
Also in webpages i can't see values, but i think it's only a web related problem and i don't care about it.

My questions are:

1) Did you test it with  PIC18F6627 ? Maybe there is something different to implement in static void ProcessIO(void) in mxwebsrvr.c

2) Are there some different check's or tricks to implement?

Please tell me what can I do.

Regards

12
Ethernet Boards (8-bit) / Current Load and FM25640 RAMTRON chip
« on: March 04, 2006, 12:19:08 PM »
1) Is it normal that normal currend load of board (as it is) is 57.5 mA ?

2) How can I access FM25640 RAMTRON chip? Please give me a little example...It will be very nice to use fsee routines....

Regards

13
Ethernet Boards (8-bit) / TCP send-receive
« on: March 04, 2006, 05:14:40 AM »
Hi,
i saw a lot of examples, i try also ex_tcp_echo.c and others examples, but none of them are working perfectly.
I analyze data with Etherreal and there are always some strange data, in all examples.
Finally i found the right solution for me and now I can go online with my Delphi program and enjoy SBC TCP stuff.
Switching OFF and ON without cable connection and plugging it while running It will automatically establish connection on next request.

Regards

14
Programming / fsee EEprom Routines....
« on: February 26, 2006, 07:07:55 AM »
Hi.
I want implemet data logging on my SBC SBC65EC board. According documentation there is a set of functions that can access external EEPROM files.
fseeInit , fseeOpen , fseeClose , fseeRelease, fseeGetByte, fseePutByte and so on.
My idea is to download from FTP empty files of fixed size (like 4k) and than by PIC access this files and store data. On TCP or RS232 Request, PIC will send this file or better all samples.
So I was looking about these functions, but i see that fseePutByte is not implemented yet. I think it should be exactly like fseeGetByte function, but instead read byte write a write. Is this true?
My idea is to use fseeOpen function to identify address location of data and than use a fseePutByte function at that address incremented every time till the end of file size.At this time it will restart from the begin as a circular buffer. The first locations of this file will be reserved to indicate actual index.
My question at the end is:
1) why these functions are not complete (fseePutBye and also file flush)?

I saw that there is another solution: to shift begin of web pages area and reserve data at begin of EEPROM. Ok, but this way should be better.Think about possibility to use 2 or 3 files and make much more better datalogging.

I wait for Modtronix and also SBC users some answer.

Bye

15
Ethernet Boards (8-bit) / SBC65EC with PIC18F6627
« on: February 16, 2006, 02:17:45 PM »
Where can I found or when it will be available firmware source code and binaries, all web page source code and binaries, and detailed software documentation for Modtronix SBC65EC with PIC18F6627 ? I want to buy this but if i can't find firmware source code, I will wait. I want know how long.
Thank you

Pages: [1] 2