39 / 93 page

IP178C/IP178C LF/IP178CH/IP178CH LF
Datasheet
39/93
June 21, 2007
Copyright © 2004, IC Plus Corp.
IP178Cx-DS-R12
A programming example of SMART MAC
Register
Content
Description
Tag/ un-tag function setup
30.13[12]
0
MII0 doesn’t strip the tag of an outgoing packet.
30.12[8]
1
MII0 adds a tag to an outgoing packet.
30.13[11:4]
111_1111
Port0~7 strip the tag of an outgoing packet.
30.12[7:0]
000_0000
Port0~7 doesn’t add a tag to an outgoing packet.
PVID function setup
30.3~30.9
16’h0001
Define PVID of port0~port6
30.10
16’h0002
Define PVID of port7
30.11
16’h0002
Define PVID of MII0
VLAN Mask function setup
30.14[8:0]
9’h1ff
TAG_VLAN_MASK_1
30.15[8:0]
9’h17f
TAG_VLAN_MASK_2
SMART MAC function setup
30.30[10:8]
001
Define 1 LAN group
30.30[11]
1
Enable router function
30.13[2:0]
000
Define VID index as 000
30.13[3]
1
Enable tag VLAN
30.30[7:0]
100_0000
Define port 7 as a WAN port